[SYNC]
This commit is contained in:
29
lib/src/Toggles/models/configuration.model.dart
Normal file
29
lib/src/Toggles/models/configuration.model.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user