TwMargin<T> mixin

Mixin that provides Tailwind-like margin methods for any widget

Mixin applications

Properties

copyWith → T Function(TwStyle newStyle)
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
style TwStyle
no setter

Methods

applyMargin(BuildContext context, Widget child) Widget
Applies margin to a widget using the resolved EdgeInsets
m(int step) → T
Set uniform margin using token scale
mb(int step) → T
Set bottom margin using token scale
ml(int step) → T
Set left margin using token scale
mr(int step) → T
Set right margin using token scale
mt(int step) → T
Set top margin using token scale
mx(int step) → T
Set horizontal margin (left + right) using token scale
my(int step) → T
Set vertical margin (top + bottom) using token scale
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveMargin(BuildContext context) EdgeInsets
Resolves margin from TwStyle and TwTheme into EdgeInsets
toString() String
A string representation of this object.
inherited

Operators

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