ShortcutSerialization.character constructor Null safety

ShortcutSerialization.character(
  1. String character
)

Creates a ShortcutSerialization representing a single character.

This is used by a CharacterActivator to serialize itself.

Implementation

ShortcutSerialization.character(String character)
    : _internal = <String, Object?>{_kShortcutCharacter: character},
      _character = character,
      assert(character.length == 1);