supportsEmoji property

bool supportsEmoji

Returns whether the terminal supports Unicode emojis (👍)

Assume Unicode emojis are supported when not on Windows. If we are on Windows, Unicode emojis are supported in Windows Terminal, which sets the WT_SESSION environment variable. See: https://github.com/microsoft/terminal/issues/1040

Implementation

bool get supportsEmoji =>
    !Platform.isWindows || Platform.environment.containsKey('WT_SESSION');