SizeAttribute class
Double attribute
- Inheritance
- Implementers
- Annotations
-
- @freezed
Constructors
- SizeAttribute(double size)
-
Constructor
factory
- SizeAttribute.gap(double size)
-
factory
- SizeAttribute.height(double size)
-
factory
- SizeAttribute.maxHeight(double size)
-
factory
- SizeAttribute.maxWidth(double size)
-
factory
- SizeAttribute.minHeight(double size)
-
factory
- SizeAttribute.minWidth(double size)
-
factory
- SizeAttribute.width(double size)
-
factory
Properties
-
copyWith
→ $SizeAttributeCopyWith<
SizeAttribute> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
no setterinherited
- value → double
-
Builds attribute into widget propety
no setteroverride
Methods
-
map<
TResult extends Object?> (TResult $default(_SizeAttribute value), {required TResult height(HeightAttribute value), required TResult maxHeight(MaxHeightAttribute value), required TResult minHeight(MinHeightAttribute value), required TResult width(WidthAttribute value), required TResult maxWidth(MaxWidthAttribute value), required TResult minWidth(MinWidthAttribute value), required TResult gap(GapAttribute value)}) → TResult -
inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_SizeAttribute value)?, {TResult height(HeightAttribute value)?, TResult maxHeight(MaxHeightAttribute value)?, TResult minHeight(MinHeightAttribute value)?, TResult width(WidthAttribute value)?, TResult maxWidth(MaxWidthAttribute value)?, TResult minWidth(MinWidthAttribute value)?, TResult gap(GapAttribute value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> (TResult $default(double size)?, {TResult height(double size)?, TResult maxHeight(double size)?, TResult minHeight(double size)?, TResult width(double size)?, TResult maxWidth(double size)?, TResult minWidth(double size)?, TResult gap(double size)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(double size), {required TResult height(double size), required TResult maxHeight(double size), required TResult minHeight(double size), required TResult width(double size), required TResult maxWidth(double size), required TResult minWidth(double size), required TResult gap(double size)}) → TResult -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited