TwMargin<T> mixin
Mixin that provides Tailwind-like margin methods for any widget
- Mixin applications
Properties
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