typeName property

String get typeName
inherited

Stable identity of this command type in storage.

Written to toMap()['type'] and used as the CommandRegistry key when a command is rebuilt from a saga queue. Defaults to the Dart class name, which breaks on rename or under --obfuscate; override it with a name that never changes. See Event.typeName.

Implementation

String get typeName => runtimeType.toString();