AnimatedDisplayable class

Inheritance

Constructors

AnimatedDisplayable.new({Key? key, required bool display, @deprecated Widget? child, Widget builder()?, Duration duration = const Duration(milliseconds: 350), bool forSliver = false, Set<AnimatedFadeHeightSwitcherEffect> effects = const {AnimatedFadeHeightSwitcherEffect.fade, AnimatedFadeHeightSwitcherEffect.size}})

Properties

builder Widget Function()?
A function that returns the widget to be displayed. This allows for lazy composition of the widget, improving performance by building the child only when it's actually displayed. It is highly recommended that the widget returned by the builder has a defined Key property. This helps the Flutter engine efficiently identify and update elements in the widget tree during transitions.
final
child Widget?
The widget to be displayed. This property is deprecated. Use builder instead to compose the widget only when it's displayed. It is highly recommended that the child widget has a defined Key property. This helps the Flutter engine efficiently identify and update elements in the widget tree during transitions.
final
display bool
Whether the widget should be displayed or hidden.
final
duration Duration
The duration of the fade and height transition.
final
effects Set<AnimatedFadeHeightSwitcherEffect>
The set of effects to apply during the transition. Defaults to AnimatedFadeHeightSwitcherEffect.fade and AnimatedFadeHeightSwitcherEffect.size.
final
forSliver bool
Whether the widget is intended to be used within a Sliver context. If true, a SliverToBoxAdapter will wrap the SizedBox when hidden.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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