AspectRatioModifierAttribute class

A modifier that wraps a widget with the AspectRatio widget.

The AspectRatio widget sizes its child to match a given aspect ratio.

Inheritance

Constructors

AspectRatioModifierAttribute(double aspectRatio)
const

Properties

animated AnimatedDataDto?
finalinherited
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(EqualityMixin other) Map<String, String>
inherited
merge(covariant AspectRatioModifierAttribute? other) AspectRatioModifierAttribute
Merges this object with other, returning a new object of type T.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(MixData mix) AspectRatioModifierSpec
override
toString() String
A string representation of this object.
inherited

Operators

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