FSwitchStyle class final
FSwitch's style.
- Mixed-in types
Constructors
- FSwitchStyle({required Color focusColor, required FLabelLayoutStyle labelLayoutStyle, required FSwitchStateStyle enabledStyle, required FSwitchStateStyle disabledStyle, required FSwitchErrorStyle errorStyle})
-
Creates a FSwitchStyle.
const
- FSwitchStyle.inherit({required FColorScheme colorScheme, required FStyle style})
-
Creates a FSwitchStyle that inherits its properties from
colorScheme
.
Properties
- disabledStyle → FSwitchStateStyle
-
The FSwitch's style when it's disabled.
final
- enabledStyle → FSwitchStateStyle
-
The FSwitch's style when it's enabled.
final
- errorStyle → FSwitchErrorStyle
-
The FSwitch's style when it has an error.
final
- focusColor → Color
-
This FSwitch's color when focused.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- labelLayoutStyle → FLabelLayoutStyle
-
The FLabel's style.
final
- labelStyle → FLabelStyle
-
The FLabel's style.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Color? focusColor, FLabelLayoutStyle? labelLayoutStyle, FSwitchStateStyle? enabledStyle, FSwitchStateStyle? disabledStyle, FSwitchErrorStyle? errorStyle}) → FSwitchStyle - Returns a copy of this FSwitchStyle with the given properties replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override