XIconBAnimated class

Creates an AnimatedIcon which is automatically animated.

The icon and onPressed are required. icon cannot be null. duration is the time taken to animate the transition.

Inheritance
Available Extensions

Constructors

XIconBAnimated({@required AnimatedIconData icon, @required Function onPressed, Key key, Duration duration = const Duration(milliseconds: 300), Color splashColor, Color hoverColor, double size = 24, EdgeInsetsGeometry padding = const EdgeInsets.all(18), AlignmentGeometry alignment = Alignment.center, Color color, Color focusColor, Color highlightColor, Color disabledColor, FocusNode focusNode, String semanticLabel, TextDirection textDirection, String firstTooltip, String secondTooltip})
XIconBAnimated.externalState({@required AnimatedIconData icon, @required Function onPressed, @required IconState iconState, Key key, Duration duration = const Duration(milliseconds: 300), Color splashColor, Color hoverColor, double size = 24, EdgeInsetsGeometry padding = const EdgeInsets.all(18), AlignmentGeometry alignment = Alignment.center, Color color, Color focusColor, Color highlightColor, Color disabledColor, FocusNode focusNode, String semanticLabel, TextDirection textDirection, String firstTooltip, String secondTooltip})

Properties

alignment AlignmentGeometry
final
color Color
final
disabledColor Color
final
duration Duration
final
firstTooltip String
final
focusColor Color
final
focusNode FocusNode
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
highlightColor Color
final
hoverColor Color
final
icon AnimatedIconData
final
iconState IconState
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
onPressed Function
final
padding EdgeInsetsGeometry
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondTooltip String
final
semanticLabel String
final
size double
final
splashColor Color
final
textDirection TextDirection
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _XIconBAnimatedState
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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. [...]
@nonVirtual, inherited