slackShortcode property
String?
get
slackShortcode
Returns the Discord shortcode of the emoji as a String or null if there isn't one.
Example:
Emoji('❤️').slackShortcode; // :heart:
Emoji('🟡').slackShortcode; // :large_yellow_circle:
Emoji('🫨').slackShortcode; // null
Implementation
String? get slackShortcode => slackShortcodes.firstOrNull;