DirectusThumbnailFit enum

Fit of the thumbnail

The fit of the thumbnail while always preserving the aspect ratio, can be any of the following options

Inheritance

Constructors

DirectusThumbnailFit()
const

Values

cover → const DirectusThumbnailFit

Covers both width/height by cropping/clipping to fit

contain → const DirectusThumbnailFit

Contain within both width/height using "letterboxing" as needed

inside → const DirectusThumbnailFit

Resize to be as large as possible, ensuring dimensions are less than or equal to the requested width and height

outside → const DirectusThumbnailFit

Resize to be as small as possible, ensuring dimensions are greater than or equal to the requested width and height

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

values → const List<DirectusThumbnailFit>
A constant List of the values in this enum, in order of their declaration.