Files
astromic_elements/lib/src/Toggles/models/configuration.model.dart
2025-02-11 15:26:44 +02:00

30 lines
809 B
Dart

import 'dart:ui';
/// SConfiguration model for the Toggles element group.
class AstromicToggleConfiguration {
final bool isEnabled;
final bool withLabel;
final bool isLabelTapable;
final TextDirection textDirection;
AstromicToggleConfiguration({
this.isEnabled = true,
this.withLabel = false,
this.isLabelTapable = true,
this.textDirection = TextDirection.ltr,
});
AstromicToggleConfiguration copyWith({
bool? isEnabled,
bool? withLabel,
bool? isLabelTapable,
TextDirection? textDirection,
}) {
return AstromicToggleConfiguration(
isEnabled: isEnabled ?? this.isEnabled,
withLabel: withLabel ?? this.withLabel,
isLabelTapable: isLabelTapable ?? this.isLabelTapable,
textDirection: textDirection ?? this.textDirection,
);
}
}