SizeConstraint class

Constraints of asset pixel width and height.

Constructors

SizeConstraint({int minWidth = 0, int maxWidth = 100000, int minHeight = 0, int maxHeight = 100000, bool ignoreSize = false})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
ignoreSize bool
When set to true, all constraints are ignored and all sizes of images are displayed.
final
maxHeight int
final
maxWidth int
final
minHeight int
final
minWidth int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? minWidth, int? maxWidth, int? minHeight, int? maxHeight, bool? ignoreSize}) SizeConstraint
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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