Size class

Annotations
  • @JsonSerializable.new(explicitToJson: true, fieldRename: FieldRename.snake)

Constructors

Size()
Size.fromJson(Map<String, dynamic> json)
factory

Properties

h ↔ int?
Height in pixels of this size.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
resize ↔ String?
Resizing method used to obtain this size. A value of fit means that the media was resized to fit one dimension, keeping its native aspect ratio. A value of crop means that the media was cropped in order to fit a specific resolution.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
w ↔ int?
Width in pixels of this size.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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