AnimatedEmojiSource enum

An enum controlling where an AnimatedEmoji is loaded from.

Inheritance

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

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