AgentComposerStyler class
- Inheritance
-
- Implemented types
-
Constructors
-
AgentComposerStyler({BoxStyler? container, BoxStyler? field, double? fieldMaxHeight, FlexBoxStyler? toolbar, AnimationConfig? animation, WidgetModifierConfig? modifier, List<VariantStyle<AgentComposerSpec>>? variants})
-
-
AgentComposerStyler.container(BoxStyler value)
-
factory
-
AgentComposerStyler.create({Prop<StyleSpec<BoxSpec>>? container, Prop<StyleSpec<BoxSpec>>? field, Prop<double>? fieldMaxHeight, Prop<StyleSpec<FlexBoxSpec>>? toolbar, List<VariantStyle<AgentComposerSpec>>? variants, WidgetModifierConfig? modifier, AnimationConfig? animation})
-
const
-
AgentComposerStyler.field(BoxStyler value)
-
factory
-
AgentComposerStyler.fieldMaxHeight(double value)
-
factory
-
AgentComposerStyler.toolbar(FlexBoxStyler value)
-
factory
-
AgentComposerStyler.wrap(WidgetModifierConfig value)
-
factory
Methods
-
animate(AnimationConfig value)
→ AgentComposerStyler
-
Sets the animation configuration.
override
-
applyVariants(Iterable<NamedVariant> variantsToApply)
→ AgentComposerStyler
-
Applies the specified named variants by merging their styles into this style.
inherited
-
build(BuildContext context, {Set<NamedVariant> namedVariants = const {}})
→ StyleSpec<AgentComposerSpec>
-
Builds the style into a fully resolved spec with metadata.
inherited
-
container(BoxStyler value)
→ AgentComposerStyler
-
Sets the container.
-
debugFillProperties(DiagnosticPropertiesBuilder properties)
→ void
-
Add additional properties associated with the node.
override
-
field(BoxStyler value)
→ AgentComposerStyler
-
Sets the field.
-
fieldMaxHeight(double value)
→ AgentComposerStyler
-
Sets the fieldMaxHeight.
-
getDiff(Equatable other)
→ Map<String, String>
-
Returns a map of properties that differ between this object and another.
inherited
-
keyframeAnimation({Listenable? trigger, required List<KeyframeTrack> timeline, required KeyframeStyleBuilder<AgentComposerSpec, AgentComposerStyler> styleBuilder})
→ AgentComposerStyler
-
Creates a keyframe animation. It will animate through the given timeline.
inherited
-
merge(covariant AgentComposerStyler? other)
→ AgentComposerStyler
-
Merges with another AgentComposerStyler.
override
-
mergeActiveVariants(BuildContext context, {required Set<NamedVariant> namedVariants})
→ Style<AgentComposerSpec>
-
Merges all active variants with their nested variants recursively.
inherited
-
modifier(WidgetModifierConfig value)
→ AgentComposerStyler
-
Sets the widget modifier.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onAndroid(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for Android platform.
inherited
-
onBreakpoint(Breakpoint breakpoint, AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant based on the specified breakpoint.
inherited
-
onBuilder(AgentComposerStyler fn(BuildContext context))
→ AgentComposerStyler
-
Creates a variant using a builder function that receives the build context.
inherited
-
onDark(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for dark mode.
inherited
-
onDesktop(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for desktop breakpoint.
inherited
-
onDisabled(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for disabled state
inherited
-
onEnabled(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for enabled state (opposite of disabled)
inherited
-
onFocused(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for focused state.
inherited
-
onFocusVisible(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for focus that should show a focus indicator.
inherited
-
onFuchsia(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for Fuchsia platform.
inherited
-
onHovered(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for hover state
inherited
-
onIos(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for iOS platform.
inherited
-
onLandscape(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for landscape device orientation.
inherited
-
onLight(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for light mode.
inherited
-
onLinux(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for Linux platform.
inherited
-
onLtr(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for left-to-right text direction.
inherited
-
onMacos(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for macOS platform.
inherited
-
onMobile(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for mobile breakpoint.
inherited
-
onNot(ContextVariant contextVariant, AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for when the context does NOT match the provided variant.
inherited
-
onPortrait(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for portrait device orientation.
inherited
-
onPressed(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for pressed state
inherited
-
onRtl(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for right-to-left text direction.
inherited
-
onTablet(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for tablet breakpoint.
inherited
-
onWeb(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for web platform.
inherited
-
onWindows(AgentComposerStyler style)
→ AgentComposerStyler
-
Creates a variant for Windows platform.
inherited
-
phaseAnimation<P>({Listenable? trigger, required List<P> phases, required AgentComposerStyler styleBuilder(P phase, AgentComposerStyler style), required CurveAnimationConfig configBuilder(P phase)})
→ AgentComposerStyler
-
Creates a phase animation. It will animate through the given phases.
inherited
-
resolve(BuildContext context)
→ StyleSpec<AgentComposerSpec>
-
Resolves to StyleSpec<AgentComposerSpec> using
context.
override
-
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style})
→ DiagnosticsNode
-
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toolbar(FlexBoxStyler value)
→ AgentComposerStyler
-
Sets the toolbar.
-
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
-
variant(Variant variant, AgentComposerStyler style)
→ AgentComposerStyler
-
Must be implemented by the class using this mixin
inherited
-
variants(List<VariantStyle<AgentComposerSpec>> value)
→ AgentComposerStyler
-
Sets the style variants.
override
-
wrap(WidgetModifierConfig value)
→ AgentComposerStyler
-
Wraps with a widget modifier.
override
Operators
-
operator ==(Object other)
→ bool
-
Overrides the equality operator to compare based on the properties.
inherited