MediaSource enum

A reference to where load the media (Image or Sound) to build a notification. There's 4 media types available:

MediaSource.Asset: images access through Flutter asset method. Example: asset://path/to/image-asset.png MediaSource.Network: images access through internet connection. Example: http(s)://url.com/to/image-asset.png MediaSource.File: images access through files stored on device. Example: file://path/to/image-asset.png MediaSource.Resource: images access through drawable native resources. On Android, those files are stored inside (project)/android/app/src/main/res folder. Example: resource://url.com/to/image-asset.png

Inheritance

Constructors

MediaSource()
const

Values

Resource → const MediaSource
Asset → const MediaSource
File → const MediaSource
Network → const MediaSource
Unknown → const MediaSource

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