EditorImageType enum

Flutter EditorImageType Enum Documentation

The EditorImageType enum represents different types of image sources that can be used with the EditorImage class. It specifies whether the image is loaded from memory, a file, a network URL, or an asset.

Usage:

EditorImageType imageType = EditorImageType.network;

Enum Values:

  • file: Represents an image loaded from a file.

  • network: Represents an image loaded from a network URL.

  • memory: Represents an image loaded from memory (byte array).

  • asset: Represents an image loaded from an asset path.

Example Usage:

EditorImageType imageType = EditorImageType.network;

switch (imageType) {
  case EditorImageType.file:
    // Handle image loaded from file.
    break;
  case EditorImageType.network:
    // Handle image loaded from network URL.
    break;
  case EditorImageType.memory:
    // Handle image loaded from memory (byte array).
    break;
  case EditorImageType.asset:
    // Handle image loaded from asset path.
    break;
}

Please refer to the documentation of individual enum values for more details.

Inheritance

Constructors

EditorImageType()
const

Values

file → const EditorImageType
network → const EditorImageType
memory → const EditorImageType
asset → const EditorImageType

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<EditorImageType>
A constant List of the values in this enum, in order of their declaration.