AspectRatioDecoratorAttribute class
A decorator that wraps a widget with the AspectRatio widget.
The AspectRatio widget sizes its child to match a given aspect ratio.
- Inheritance
-
- Object
- Attribute
- StyleAttribute
- SpecAttribute<
AspectRatioDecoratorSpec> - DecoratorAttribute<
AspectRatioDecoratorAttribute, AspectRatioDecoratorSpec> - AspectRatioDecoratorAttribute
Constructors
- AspectRatioDecoratorAttribute(double aspectRatio)
-
const
Properties
- aspectRatio → double
-
The aspect ratio to use when sizing the child.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mergeKey → Object
-
no setterinherited
-
props
→ List<
Object?> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool
-
no setterinherited
Methods
-
getDiff(
Comparable other) → Map< String, String> -
inherited
-
merge(
covariant AspectRatioDecoratorAttribute? other) → AspectRatioDecoratorAttribute -
Merges this object with
other
, returning a new object of typeT
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
MixData mix) → AspectRatioDecoratorSpec -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited