DisclosureStyler class

Inheritance
Implemented types
Mixed-in types
Available extensions

Constructors

DisclosureStyler({BoxStyler? container, RemixBoxEffectsMix? containerEffects, BoxStyler? trigger, RemixBoxEffectsMix? triggerEffects, BoxStyler? content, AnimationConfig? animation, WidgetModifierConfig? modifier, List<VariantStyle<DisclosureSpec>>? variants})
DisclosureStyler.alignment(AlignmentGeometry value)
factory
DisclosureStyler.backgroundImage(ImageProvider<Object> image, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat})
factory
DisclosureStyler.backgroundImageAsset(String path, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat})
factory
DisclosureStyler.backgroundImageUrl(String url, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat})
factory
DisclosureStyler.border(BoxBorderMix<BoxBorder> value)
factory
DisclosureStyler.borderRadius(BorderRadiusGeometryMix<BorderRadiusGeometry> value)
factory
DisclosureStyler.clipBehavior(Clip value)
factory
DisclosureStyler.color(Color value)
factory
DisclosureStyler.constraints(BoxConstraintsMix value)
factory
DisclosureStyler.container(BoxStyler value)
factory
DisclosureStyler.containerEffects(RemixBoxEffectsMix value)
factory
DisclosureStyler.content(BoxStyler value)
factory
DisclosureStyler.create({Prop<StyleSpec<BoxSpec>>? container, Prop<RemixBoxEffectsSpec>? containerEffects, Prop<StyleSpec<BoxSpec>>? trigger, Prop<RemixBoxEffectsSpec>? triggerEffects, Prop<StyleSpec<BoxSpec>>? content, List<VariantStyle<DisclosureSpec>>? variants, WidgetModifierConfig? modifier, AnimationConfig? animation})
const
DisclosureStyler.decoration(DecorationMix<Decoration> value)
factory
DisclosureStyler.elevation(ElevationShadow value)
factory
DisclosureStyler.foregroundDecoration(DecorationMix<Decoration> value)
factory
DisclosureStyler.foregroundLinearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform})
factory
DisclosureStyler.foregroundRadialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform})
factory
DisclosureStyler.foregroundSweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform})
factory
DisclosureStyler.gradient(GradientMix<Gradient> value)
factory
DisclosureStyler.height(double value)
factory
DisclosureStyler.image(DecorationImageMix value)
factory
DisclosureStyler.linearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform})
factory
DisclosureStyler.margin(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value)
factory
DisclosureStyler.maxHeight(double value)
factory
DisclosureStyler.maxWidth(double value)
factory
DisclosureStyler.minHeight(double value)
factory
DisclosureStyler.minWidth(double value)
factory
DisclosureStyler.padding(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value)
factory
DisclosureStyler.radialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform})
factory
DisclosureStyler.rotate(double radians, {Alignment alignment = .center})
factory
DisclosureStyler.scale(double scale, {Alignment alignment = .center})
factory
DisclosureStyler.shadow(BoxShadowMix value)
factory
DisclosureStyler.shadows(List<BoxShadowMix> value)
factory
DisclosureStyler.shape(ShapeBorderMix<ShapeBorder> value)
factory
DisclosureStyler.size(double width, double height)
factory
DisclosureStyler.skew(double skewX, double skewY)
factory
DisclosureStyler.sweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform})
factory
DisclosureStyler.textStyle(TextStyler value)
factory
DisclosureStyler.transform(Matrix4 value, {Alignment alignment = .center})
factory
DisclosureStyler.translate(double x, double y, [double z = 0.0])
factory
DisclosureStyler.trigger(BoxStyler value)
factory
DisclosureStyler.triggerEffects(RemixBoxEffectsMix value)
factory
DisclosureStyler.width(double value)
factory

Properties

$animation → AnimationConfig?
finalinherited
$container → Prop<StyleSpec<BoxSpec>>?
final
$containerEffects → Prop<RemixBoxEffectsSpec>?
final
$content → Prop<StyleSpec<BoxSpec>>?
final
$modifier → WidgetModifierConfig?
finalinherited
$stylerFieldNames → Set<String>
Names of every field represented by the Styler's Mix.props.
no setteroverride
$trigger → Prop<StyleSpec<BoxSpec>>?
final
$triggerEffects → Prop<RemixBoxEffectsSpec>?
final
$variants → List<VariantStyle<DisclosureSpec>>?
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) → DisclosureStyler
animate(AnimationConfig value) → DisclosureStyler
Sets the animation configuration.
override
applyVariants(Iterable<NamedVariant> variantsToApply) → DisclosureStyler
Applies the specified named variants by merging their styles into this style.
inherited
backgroundImage(ImageProvider<Object> image, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat}) → DisclosureStyler
backgroundImageAsset(String path, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat}) → DisclosureStyler
backgroundImageUrl(String url, {BoxFit? fit, AlignmentGeometry? alignment, ImageRepeat repeat = .noRepeat}) → DisclosureStyler
border(BoxBorderMix<BoxBorder> value) → DisclosureStyler
override
borderRadius(BorderRadiusGeometryMix<BorderRadiusGeometry> value) → DisclosureStyler
override
build(BuildContext context, {Set<NamedVariant> namedVariants = const {}}) → StyleSpec<DisclosureSpec>
Builds the style into a fully resolved spec with metadata.
inherited
call({Key? key, required Widget trigger, required Widget content, ValueWidgetBuilder<NakedDisclosureState>? triggerBuilder, bool? expanded, bool defaultExpanded = false, ValueChanged<bool>? onExpandedChanged, bool enabled = true, MouseCursor mouseCursor = SystemMouseCursors.click, bool enableFeedback = true, FocusNode? focusNode, bool autofocus = false, ValueChanged<bool>? onFocusChange, ValueChanged<bool>? onHoverChange, ValueChanged<bool>? onPressChange, String? semanticLabel, String? semanticHint, bool excludeSemantics = false, NakedDisclosureTransitionBuilder? transitionBuilder, AnimationStyle animationStyle = const AnimationStyle(curve: Curves.ease, duration: Duration(milliseconds: 200), reverseDuration: Duration(milliseconds: 200))}) → RemixDisclosure
clipBehavior(Clip value) → DisclosureStyler
color(Color value) → DisclosureStyler
constraints(BoxConstraintsMix value) → DisclosureStyler
override
container(BoxStyler value) → DisclosureStyler
Sets the container.
containerEffects(RemixBoxEffectsMix value) → DisclosureStyler
Sets the containerEffects.
content(BoxStyler value) → DisclosureStyler
Sets the content.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
decoration(DecorationMix<Decoration> value) → DisclosureStyler
override
elevation(ElevationShadow value) → DisclosureStyler
foregroundDecoration(DecorationMix<Decoration> value) → DisclosureStyler
foregroundLinearGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? begin, AlignmentGeometry? end, TileMode? tileMode, GradientTransform? transform}) → DisclosureStyler
foregroundRadialGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? radius, AlignmentGeometry? focal, double? focalRadius, TileMode? tileMode, GradientTransform? transform}) → DisclosureStyler
foregroundSweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform}) → DisclosureStyler
getDiff(Equatable other) → Map<String, String>
Returns a map of properties that differ between this object and another.
inherited
gradient(GradientMix<Gradient> value) → DisclosureStyler
height(double value) → DisclosureStyler
image(DecorationImageMix value) → DisclosureStyler
keyframeAnimation({Listenable? trigger, required List<KeyframeTrack> timeline, required KeyframeStyleBuilder<DisclosureSpec, DisclosureStyler> styleBuilder}) → DisclosureStyler
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}) → DisclosureStyler
margin(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value) → DisclosureStyler
override
maxHeight(double value) → DisclosureStyler
maxWidth(double value) → DisclosureStyler
merge(covariant DisclosureStyler? other) → DisclosureStyler
Merges with another DisclosureStyler.
override
mergeActiveVariants(BuildContext context, {required Set<NamedVariant> namedVariants}) → Style<DisclosureSpec>
Merges all active variants with their nested variants recursively.
inherited
minHeight(double value) → DisclosureStyler
minWidth(double value) → DisclosureStyler
modifier(WidgetModifierConfig value) → DisclosureStyler
Sets the widget modifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAndroid(DisclosureStyler style) → DisclosureStyler
Creates a variant for Android platform.
inherited
onBreakpoint(Breakpoint breakpoint, DisclosureStyler style) → DisclosureStyler
Creates a variant based on the specified breakpoint.
inherited
onBuilder(DisclosureStyler fn(BuildContext context)) → DisclosureStyler
Creates a variant using a builder function that receives the build context.
inherited
onCollapsed(DisclosureStyler value) → DisclosureStyler

Available on DisclosureStyler, provided by the RemixDisclosureStylerRemixHelpers extension

onDark(DisclosureStyler style) → DisclosureStyler
Creates a variant for dark mode.
inherited
onDesktop(DisclosureStyler style) → DisclosureStyler
Creates a variant for desktop breakpoint.
inherited
onDisabled(DisclosureStyler style) → DisclosureStyler
Creates a variant for disabled state
inherited
onEnabled(DisclosureStyler style) → DisclosureStyler
Creates a variant for enabled state (opposite of disabled)
inherited
onExpanded(DisclosureStyler value) → DisclosureStyler

Available on DisclosureStyler, provided by the RemixDisclosureStylerRemixHelpers extension

onFocused(DisclosureStyler style) → DisclosureStyler
Creates a variant for focused state.
inherited
onFocusVisible(DisclosureStyler style) → DisclosureStyler
Creates a variant for focus that should show a focus indicator.
inherited
onFuchsia(DisclosureStyler style) → DisclosureStyler
Creates a variant for Fuchsia platform.
inherited
onHovered(DisclosureStyler style) → DisclosureStyler
Creates a variant for hover state
inherited
onIos(DisclosureStyler style) → DisclosureStyler
Creates a variant for iOS platform.
inherited
onLandscape(DisclosureStyler style) → DisclosureStyler
Creates a variant for landscape device orientation.
inherited
onLight(DisclosureStyler style) → DisclosureStyler
Creates a variant for light mode.
inherited
onLinux(DisclosureStyler style) → DisclosureStyler
Creates a variant for Linux platform.
inherited
onLtr(DisclosureStyler style) → DisclosureStyler
Creates a variant for left-to-right text direction.
inherited
onMacos(DisclosureStyler style) → DisclosureStyler
Creates a variant for macOS platform.
inherited
onMobile(DisclosureStyler style) → DisclosureStyler
Creates a variant for mobile breakpoint.
inherited
onNot(ContextVariant contextVariant, DisclosureStyler style) → DisclosureStyler
Creates a variant for when the context does NOT match the provided variant.
inherited
onPortrait(DisclosureStyler style) → DisclosureStyler
Creates a variant for portrait device orientation.
inherited
onPressed(DisclosureStyler style) → DisclosureStyler
Creates a variant for pressed state
inherited
onRtl(DisclosureStyler style) → DisclosureStyler
Creates a variant for right-to-left text direction.
inherited
onTablet(DisclosureStyler style) → DisclosureStyler
Creates a variant for tablet breakpoint.
inherited
onWeb(DisclosureStyler style) → DisclosureStyler
Creates a variant for web platform.
inherited
onWindows(DisclosureStyler style) → DisclosureStyler
Creates a variant for Windows platform.
inherited
padding(EdgeInsetsGeometryMix<EdgeInsetsGeometry> value) → DisclosureStyler
override
phaseAnimation<P>({Listenable? trigger, required List<P> phases, required DisclosureStyler styleBuilder(P phase, DisclosureStyler style), required CurveAnimationConfig configBuilder(P phase)}) → DisclosureStyler
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}) → DisclosureStyler
resolve(BuildContext context) → StyleSpec<DisclosureSpec>
Resolves to StyleSpec<DisclosureSpec> using context.
override
rotate(double radians, {Alignment alignment = .center}) → DisclosureStyler
scale(double scale, {Alignment alignment = .center}) → DisclosureStyler
shadow(BoxShadowMix value) → DisclosureStyler
shadows(List<BoxShadowMix> value) → DisclosureStyler
shape(ShapeBorderMix<ShapeBorder> value) → DisclosureStyler
override
size(double width, double height) → DisclosureStyler
skew(double skewX, double skewY) → DisclosureStyler
sweepGradient({required List<Color> colors, List<double>? stops, AlignmentGeometry? center, double? startAngle, double? endAngle, TileMode? tileMode, GradientTransform? transform}) → DisclosureStyler
textStyle(TextStyler value) → DisclosureStyler
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}) → DisclosureStyler
override
translate(double x, double y, [double z = 0.0]) → DisclosureStyler
trigger(BoxStyler value) → DisclosureStyler
Sets the trigger.
triggerEffects(RemixBoxEffectsMix value) → DisclosureStyler
Sets the triggerEffects.
variant(Variant variant, DisclosureStyler style) → DisclosureStyler
Must be implemented by the class using this mixin
inherited
variants(List<VariantStyle<DisclosureSpec>> value) → DisclosureStyler
Sets the style variants.
override
width(double value) → DisclosureStyler
wrap(WidgetModifierConfig value) → DisclosureStyler
Wraps with a widget modifier.
override

Operators

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