DirectusThumbnailFit enum
Fit of the thumbnail
The fit of the thumbnail while always preserving the aspect ratio, can be any of the following options
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
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.