JsonAnimatedSwitcherBuilderModel class

Creates an AnimatedSwitcher.

Inheritance

Constructors

JsonAnimatedSwitcherBuilderModel(Map<String, dynamic> args, {required Duration duration, required dynamic layoutBuilder, Duration? reverseDuration, Curve switchInCurve = Curves.linear, Curve switchOutCurve = Curves.linear, required dynamic transitionBuilder, JsonWidgetData? child})
const

Properties

args Map<String, dynamic>
finalinherited
child JsonWidgetData?
The current child widget to display. If there was a previous child, then that child will be faded out using the switchOutCurve, while the new child is faded in with the switchInCurve, over the duration.
final
duration Duration
The duration of the transition from the old child value to the new one.
final
hashCode int
The hash code for this object.
no setterinherited
layoutBuilder → dynamic
A function that wraps all of the children that are transitioning out, and the child that's transitioning in, with a widget that lays all of them out. This is called every time this widget is built. The function must not return null.
final
reverseDuration Duration?
The duration of the transition from the new child value to the old one.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchInCurve Curve
The animation curve to use when transitioning in a new child.
final
switchOutCurve Curve
The animation curve to use when transitioning a previous child out.
final
transitionBuilder → dynamic
A function that wraps a new child with an animation that transitions the child in when the animation runs in the forward direction and out when the animation runs in the reverse direction. This is only called when a new child is set (not for each build), or when a new transitionBuilder is set. If a new transitionBuilder is set, then the transition is rebuilt for the current child and all previous children using the new transitionBuilder. The function must not return null.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
override
toString() String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) JsonAnimatedSwitcherBuilderModel
maybeFromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) JsonAnimatedSwitcherBuilderModel?