FlyFlex<T> mixin

Mixin that provides Tailwind-like flex methods for any widget

Mixin applications

Properties

copyWith → T Function(FlyStyle newStyle)
no setter
flyStyle FlyStyle
no setter
hasFlexProperties bool
Check if any flex properties are set
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyFlex(BuildContext context, Widget child) Widget
Apply flex properties to a widget
basis(String value) → T
Set flex basis - accepts String ('s32', 's40', 's48', etc.) This method can be chained with other flex methods, with later calls overriding earlier ones
flex(dynamic value) → T
Set flex value - accepts int (1-12) or String ('auto', 'initial', 'none') This method can be chained with other flex methods, with later calls overriding earlier ones
grow(int value) → T
Set flex grow - accepts int (0-2) This method can be chained with other flex methods, with later calls overriding earlier ones
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shrink(int value) → T
Set flex shrink - accepts int (0-1) This method can be chained with other flex methods, with later calls overriding earlier ones
toString() String
A string representation of this object.
inherited

Operators

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