ResourceType enum
Represents the type of a resource. It can represent file, url or bytes that correspond to one of the supported types.
Constructors
- ResourceType()
-
const
- ResourceType.fromExtension(String type)
-
factory
- ResourceType.fromFilePath(String filePath)
-
factory
- ResourceType.fromUrl(String url)
-
factory
Values
- svg → const ResourceType
- png → const ResourceType
- jpg → const ResourceType
- gif → const ResourceType
- webp → const ResourceType
- unknown → const ResourceType
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isGif → bool
-
no setter
- isJpg → bool
-
no setter
- isPng → bool
-
no setter
- isStandardImage → bool
-
no setter
- isSvg → bool
-
no setter
- isWebp → bool
-
no setter
- 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<
ResourceType> - A constant List of the values in this enum, in order of their declaration.