IProovUIEvent.fromMap constructor
IProovUIEvent.fromMap(
- Map map
Implementation
factory IProovUIEvent.fromMap(Map map) {
switch (map['uiEvent']) {
case 'not_started':
return const IProovUIEventNotStarted();
case 'started':
return const IProovUIEventStarted();
case 'ended':
return const IProovUIEventEnded();
}
throw Exception('Invalid event');
}