TwStyle class
Internal style storage for TwText widget
Constructors
- TwStyle.new({int? p, int? px, int? py, int? pl, int? pr, int? pb, int? pt, int? m, int? mx, int? my, int? ml, int? mr, int? mb, int? mt, String? color, String? rounded, String? roundedT, String? roundedR, String? roundedB, String? roundedL, String? roundedTl, String? roundedTr, String? roundedBl, String? roundedBr})
-
const
Properties
- color → String?
-
final
- hasBorderRadius → bool
-
Check if any border radius is set
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMargin → bool
-
Check if any margin is set
no setter
- hasPadding → bool
-
Check if any padding is set
no setter
- m → int?
-
final
- mb → int?
-
final
- ml → int?
-
final
- mr → int?
-
final
- mt → int?
-
final
- mx → int?
-
final
- my → int?
-
final
- p → int?
-
final
- pb → int?
-
final
- pl → int?
-
final
- pr → int?
-
final
- pt → int?
-
final
- px → int?
-
final
- py → int?
-
final
- rounded → String?
-
final
- roundedB → String?
-
final
- roundedBl → String?
-
final
- roundedBr → String?
-
final
- roundedL → String?
-
final
- roundedR → String?
-
final
- roundedT → String?
-
final
- roundedTl → String?
-
final
- roundedTr → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
BuildContext context, Widget child) → Widget - Apply all style utilities to a widget in the correct order
-
copyWith(
{int? p, int? px, int? py, int? pl, int? pr, int? pb, int? pt, int? m, int? mx, int? my, int? ml, int? mr, int? mb, int? mt, String? color, String? rounded, String? roundedT, String? roundedR, String? roundedB, String? roundedL, String? roundedTl, String? roundedTr, String? roundedBl, String? roundedBr}) → TwStyle - Create a copy of this style with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited