source property

AnimatedEmojiSource? source
final

The source from where the emoji is loaded.

When this is null the widget tires to load them from assets and then falls back to web.

To load emojis from assets, add them to your pubspec.

You need to import the specific skin tones to use them.

Example:

assets:
  - packages/animated_emoji/lottie/rocket.json
   # Import the dark skin tone.
   # Available skin tones: Light, MediumLight, Medium, MediumDark, Dark
  - packages/animated_emoji/lottie/clapDark.json

Implementation

final AnimatedEmojiSource? source;