FSwitchStyle class

FSwitch's style.

Inheritance
Implemented types
Available extensions

Constructors

FSwitchStyle({required Color focusColor, required FVariants<FSwitchVariantConstraint, FSwitchVariant, Color, Delta> trackColor, required FVariants<FSwitchVariantConstraint, FSwitchVariant, Color, Delta> thumbColor, required FVariants<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta> labelTextStyle, required FVariants<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta> descriptionTextStyle, required FVariants<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta> errorTextStyle, EdgeInsetsGeometry labelPadding = .zero, EdgeInsetsGeometry descriptionPadding = .zero, EdgeInsetsGeometry errorPadding = .zero, EdgeInsetsGeometry childPadding = .zero, FLabelMotion labelMotion = const FLabelMotion()})
Creates a FSwitchStyle.
const
FSwitchStyle.inherit({required FColors colors, required FStyle style})
Creates a FSwitchStyle that inherits its properties.
factory

Properties

childPadding EdgeInsetsGeometry
no setterinherited
descriptionPadding EdgeInsetsGeometry
no setterinherited
descriptionTextStyle FVariants<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>
no setterinherited
errorPadding EdgeInsetsGeometry
no setterinherited
errorTextStyle FVariants<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta>
no setterinherited
focusColor Color
This FSwitch's color when focused.
final
hashCode int
The hash code for this object.
no setterinherited
labelMotion FLabelMotion
no setterinherited
labelPadding EdgeInsetsGeometry
no setterinherited
labelTextStyle FVariants<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbColor FVariants<FSwitchVariantConstraint, FSwitchVariant, Color, Delta>
The thumb's color.
final
trackColor FVariants<FSwitchVariantConstraint, FSwitchVariant, Color, Delta>
The track's color.
final

Methods

call(covariant Object _) FSwitchStyle
Returns itself.
inherited
copyWith({FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? labelTextStyle, FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? descriptionTextStyle, FVariantsDelta<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta>? errorTextStyle}) FFormFieldStyle

Available on FFormFieldStyle, provided by the $FFormFieldStyleTransformations extension

Returns a copy of this FFormFieldStyle with the given properties replaced.
copyWith({EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? descriptionPadding, EdgeInsetsGeometry? errorPadding, EdgeInsetsGeometry? childPadding, FLabelMotionDelta? labelMotion, FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? labelTextStyle, FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? descriptionTextStyle, FVariantsDelta<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta>? errorTextStyle}) FLabelStyle

Available on FLabelStyle, provided by the $FLabelStyleTransformations extension

Returns a copy of this FLabelStyle with the given properties replaced.
copyWith({Color? focusColor, FVariantsValueDelta<FSwitchVariantConstraint, FSwitchVariant, Color, Delta>? trackColor, FVariantsValueDelta<FSwitchVariantConstraint, FSwitchVariant, Color, Delta>? thumbColor, EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? descriptionPadding, EdgeInsetsGeometry? errorPadding, EdgeInsetsGeometry? childPadding, FLabelMotionDelta? labelMotion, FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? labelTextStyle, FVariantsDelta<FFormFieldVariantConstraint, FFormFieldVariant, TextStyle, TextStyleDelta>? descriptionTextStyle, FVariantsDelta<FFormFieldErrorVariantConstraint, FFormFieldErrorVariant, TextStyle, TextStyleDelta>? errorTextStyle}) FSwitchStyle

Available on FSwitchStyle, provided by the $FSwitchStyleTransformations extension

Returns a copy of this FSwitchStyle with the given properties replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
lerp(FFormFieldStyle other, double t) FFormFieldStyle

Available on FFormFieldStyle, provided by the $FFormFieldStyleTransformations extension

Linearly interpolate between this and another FFormFieldStyle using the given factor t.
lerp(FLabelStyle other, double t) FLabelStyle

Available on FLabelStyle, provided by the $FLabelStyleTransformations extension

Linearly interpolate between this and another FLabelStyle using the given factor t.
lerp(FSwitchStyle other, double t) FSwitchStyle

Available on FSwitchStyle, provided by the $FSwitchStyleTransformations extension

Linearly interpolate between this and another FSwitchStyle using the given factor t.
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.
inherited