AnimatedEmojiSource enum
An enum controlling where an AnimatedEmoji is loaded from.
Constructors
- AnimatedEmojiSource()
-
const
Values
- network → const AnimatedEmojiSource
-
Loads the emoji from network.
Does not work on web due to CORS.
- asset → const AnimatedEmojiSource
-
Loads the emoji from the assets.
@{template offline_use} You need add the emojis you want to use to your assets first.
Example:
assets: - packages/animated_emoji/lottie/rocket.json - packages/animated_emoji/lottie/clap.json
@{endtemplate}
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<
AnimatedEmojiSource> - A constant List of the values in this enum, in order of their declaration.