ToggleGroupStyler class

Inheritance
Implemented types
Mixed-in types

Constructors

ToggleGroupStyler({FlexBoxStyler? container, ToggleGroupItemStyler? item, AnimationConfig? animation, WidgetModifierConfig? modifier, List<VariantStyle<ToggleGroupSpec>>? variants})
ToggleGroupStyler.alignment(AlignmentGeometry value)
factory
ToggleGroupStyler.backgroundImage(ImageProvider<Object> image, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat})
factory
ToggleGroupStyler.backgroundImageAsset(String path, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat})
factory
ToggleGroupStyler.backgroundImageUrl(String url, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat})
factory
ToggleGroupStyler.border(BoxBorderMix<BoxBorder> value)
factory
ToggleGroupStyler.borderRadius(BorderRadiusGeometryMix<BorderRadiusGeometry> value)
factory
ToggleGroupStyler.clipBehavior(Clip value)
factory
ToggleGroupStyler.color(Color value)
factory
ToggleGroupStyler.column()
factory
ToggleGroupStyler.constraints(BoxConstraintsMix value)
factory
ToggleGroupStyler.container(FlexBoxStyler value)
factory
ToggleGroupStyler.create({Prop<StyleSpec<FlexBoxSpec>>? container, Prop<StyleSpec<ToggleGroupItemSpec>>? item, List<VariantStyle<ToggleGroupSpec>>? variants, WidgetModifierConfig? modifier, AnimationConfig? animation})
const
ToggleGroupStyler.crossAxisAlignment(CrossAxisAlignment value)
factory
ToggleGroupStyler.decoration(DecorationMix<Decoration> value)
factory
ToggleGroupStyler.direction(Axis value)
factory
ToggleGroupStyler.elevation(ElevationShadow value)
factory
ToggleGroupStyler.foregroundDecoration(DecorationMix<Decoration> value)
factory
ToggleGroupStyler.foregroundLinearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform})
factory
ToggleGroupStyler.foregroundRadialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform})
factory
ToggleGroupStyler.foregroundSweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform})
factory
ToggleGroupStyler.gradient(GradientMix<Gradient> value)
factory
ToggleGroupStyler.height(double value)
factory
ToggleGroupStyler.image(DecorationImageMix value)
factory
ToggleGroupStyler.item(ToggleGroupItemStyler value)
factory
ToggleGroupStyler.linearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform})
factory
ToggleGroupStyler.mainAxisAlignment(MainAxisAlignment value)
factory
ToggleGroupStyler.mainAxisSize(MainAxisSize value)
factory
ToggleGroupStyler.margin(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value)
factory
ToggleGroupStyler.maxHeight(double value)
factory
ToggleGroupStyler.maxWidth(double value)
factory
ToggleGroupStyler.minHeight(double value)
factory
ToggleGroupStyler.minWidth(double value)
factory
ToggleGroupStyler.padding(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value)
factory
ToggleGroupStyler.radialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform})
factory
ToggleGroupStyler.rotate(double radians, {Alignment alignment = .center})
factory
ToggleGroupStyler.row()
factory
ToggleGroupStyler.scale(double scale, {Alignment alignment = .center})
factory
ToggleGroupStyler.shadow(BoxShadowMix value)
factory
ToggleGroupStyler.shadows(List<BoxShadowMix> value)
factory
ToggleGroupStyler.shape(ShapeBorderMix<ShapeBorder> value)
factory
ToggleGroupStyler.size(double width, double height)
factory
ToggleGroupStyler.skew(double skewX, double skewY)
factory
ToggleGroupStyler.spacing(double value)
factory
ToggleGroupStyler.sweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform})
factory
ToggleGroupStyler.textBaseline(TextBaseline value)
factory
ToggleGroupStyler.textDirection(TextDirection value)
factory
ToggleGroupStyler.textStyle(TextStyler value)
factory
ToggleGroupStyler.transform(Matrix4 value, {Alignment alignment = .center})
factory
ToggleGroupStyler.translate(double x, double y, [double z = 0.0])
factory
ToggleGroupStyler.verticalDirection(VerticalDirection value)
factory
ToggleGroupStyler.width(double value)
factory

Properties

$animation → AnimationConfig?
finalinherited
$container → Prop<StyleSpec<FlexBoxSpec>>?
final
$item → Prop<StyleSpec<ToggleGroupItemSpec>>?
final
$modifier → WidgetModifierConfig?
finalinherited
$stylerFieldNames → Set<String>
Names of every field represented by the Styler's Mix.props.
no setteroverride
$variants → List<VariantStyle<ToggleGroupSpec>>?
finalinherited
hashCode → int
Overrides the hash code getter to compute hash code based on properties.
no setterinherited
mergeKey → Object
Default implementation uses runtimeType as the merge key
no setterinherited
props → List<Object?>
The properties based on which equality and hash code are computed.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool
Whether to use a detailed string representation of the object.
no setterinherited

Methods

alignment(AlignmentGeometry value) → ToggleGroupStyler
animate(AnimationConfig value) → ToggleGroupStyler
Sets the animation configuration.
override
applyVariants(Iterable<NamedVariant> variantsToApply) → ToggleGroupStyler
Applies the specified named variants by merging their styles into this style.
inherited
backgroundImage(ImageProvider<Object> image, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat}) → ToggleGroupStyler
backgroundImageAsset(String path, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat}) → ToggleGroupStyler
backgroundImageUrl(String url, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat}) → ToggleGroupStyler
border(BoxBorderMix<BoxBorder> value) → ToggleGroupStyler
override
borderRadius(BorderRadiusGeometryMix<BorderRadiusGeometry> value) → ToggleGroupStyler
override
build(BuildContext context, {Set<NamedVariant> namedVariants = const {}}) → StyleSpec<ToggleGroupSpec>
Builds the style into a fully resolved spec with metadata.
inherited
call<T>({Key? key, required List<RemixToggleGroupItem<T>> items, required T? selectedValue, ValueChanged<T?>? onChanged, bool enabled = true, Axis orientation = .horizontal, bool loop = true, String? semanticLabel, bool excludeSemantics = false}) → RemixToggleGroup<T>
clipBehavior(Clip value) → ToggleGroupStyler
color(Color value) → ToggleGroupStyler
column() → ToggleGroupStyler
constraints(BoxConstraintsMix value) → ToggleGroupStyler
override
container(FlexBoxStyler value) → ToggleGroupStyler
Sets the container.
crossAxisAlignment(CrossAxisAlignment value) → ToggleGroupStyler
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
decoration(DecorationMix<Decoration> value) → ToggleGroupStyler
override
direction(Axis value) → ToggleGroupStyler
elevation(ElevationShadow value) → ToggleGroupStyler
foregroundDecoration(DecorationMix<Decoration> value) → ToggleGroupStyler
foregroundLinearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform}) → ToggleGroupStyler
foregroundRadialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform}) → ToggleGroupStyler
foregroundSweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform}) → ToggleGroupStyler
getDiff(Equatable other) → Map<String, String>
Returns a map of properties that differ between this object and another.
inherited
gradient(GradientMix<Gradient> value) → ToggleGroupStyler
height(double value) → ToggleGroupStyler
image(DecorationImageMix value) → ToggleGroupStyler
item(ToggleGroupItemStyler value) → ToggleGroupStyler
Sets the item.
keyframeAnimation({Listenable? trigger, required List<KeyframeTrack> timeline, required KeyframeStyleBuilder<ToggleGroupSpec, ToggleGroupStyler> styleBuilder}) → ToggleGroupStyler
Creates a keyframe animation. It will animate through the given timeline.
inherited
linearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform}) → ToggleGroupStyler
mainAxisAlignment(MainAxisAlignment value) → ToggleGroupStyler
mainAxisSize(MainAxisSize value) → ToggleGroupStyler
margin(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value) → ToggleGroupStyler
override
maxHeight(double value) → ToggleGroupStyler
maxWidth(double value) → ToggleGroupStyler
merge(covariant ToggleGroupStyler? other) → ToggleGroupStyler
Merges with another ToggleGroupStyler.
override
mergeActiveVariants(BuildContext context, {required Set<NamedVariant> namedVariants}) → Style<ToggleGroupSpec>
Merges all active variants with their nested variants recursively.
inherited
minHeight(double value) → ToggleGroupStyler
minWidth(double value) → ToggleGroupStyler
modifier(WidgetModifierConfig value) → ToggleGroupStyler
Sets the widget modifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAndroid(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for Android platform.
inherited
onBreakpoint(Breakpoint breakpoint, ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant based on the specified breakpoint.
inherited
onBuilder(ToggleGroupStyler fn(BuildContext context)) → ToggleGroupStyler
Creates a variant using a builder function that receives the build context.
inherited
onDark(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for dark mode.
inherited
onDesktop(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for desktop breakpoint.
inherited
onDisabled(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for disabled state
inherited
onEnabled(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for enabled state (opposite of disabled)
inherited
onFocused(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for focused state.
inherited
onFocusVisible(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for focus that should show a focus indicator.
inherited
onFuchsia(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for Fuchsia platform.
inherited
onHovered(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for hover state
inherited
onIos(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for iOS platform.
inherited
onLandscape(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for landscape device orientation.
inherited
onLight(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for light mode.
inherited
onLinux(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for Linux platform.
inherited
onLtr(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for left-to-right text direction.
inherited
onMacos(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for macOS platform.
inherited
onMobile(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for mobile breakpoint.
inherited
onNot(ContextVariant contextVariant, ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for when the context does NOT match the provided variant.
inherited
onPortrait(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for portrait device orientation.
inherited
onPressed(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for pressed state
inherited
onRtl(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for right-to-left text direction.
inherited
onTablet(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for tablet breakpoint.
inherited
onWeb(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for web platform.
inherited
onWindows(ToggleGroupStyler style) → ToggleGroupStyler
Creates a variant for Windows platform.
inherited
padding(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value) → ToggleGroupStyler
override
phaseAnimation<P>({Listenable? trigger, required List<P> phases, required ToggleGroupStyler styleBuilder(P phase, ToggleGroupStyler style), required CurveAnimationConfig configBuilder(P phase)}) → ToggleGroupStyler
Creates a phase animation. It will animate through the given phases.
inherited
radialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform}) → ToggleGroupStyler
resolve(BuildContext context) → StyleSpec<ToggleGroupSpec>
Resolves to StyleSpec<ToggleGroupSpec> using context.
override
rotate(double radians, {Alignment alignment = .center}) → ToggleGroupStyler
row() → ToggleGroupStyler
scale(double scale, {Alignment alignment = .center}) → ToggleGroupStyler
shadow(BoxShadowMix value) → ToggleGroupStyler
shadows(List<BoxShadowMix> value) → ToggleGroupStyler
shape(ShapeBorderMix<ShapeBorder> value) → ToggleGroupStyler
override
size(double width, double height) → ToggleGroupStyler
skew(double skewX, double skewY) → ToggleGroupStyler
spacing(double value) → ToggleGroupStyler
sweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform}) → ToggleGroupStyler
textBaseline(TextBaseline value) → ToggleGroupStyler
textDirection(TextDirection value) → ToggleGroupStyler
textStyle(TextStyler value) → ToggleGroupStyler
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
transform(Matrix4 value, {Alignment alignment = .center}) → ToggleGroupStyler
override
translate(double x, double y, [double z = 0.0]) → ToggleGroupStyler
variant(Variant variant, ToggleGroupStyler style) → ToggleGroupStyler
Must be implemented by the class using this mixin
inherited
variants(List<VariantStyle<ToggleGroupSpec>> value) → ToggleGroupStyler
Sets the style variants.
override
verticalDirection(VerticalDirection value) → ToggleGroupStyler
width(double value) → ToggleGroupStyler
wrap(WidgetModifierConfig value) → ToggleGroupStyler
Wraps with a widget modifier.
override

Operators

operator ==(Object other) → bool
Overrides the equality operator to compare based on the properties.
inherited