notifyStateChange method
Implementation
@override
Future<void> notifyStateChange() async {
_log.info('Notified on state change.');
await _connectCordCompleted;
_log.info('Continue as _connectCordCompleted is completed.');
// final diagram = plantUml(stateMachine);
final diagram = PlantUMLConverter(
stateMachine: stateMachine, expandedItems: expandedItems,
// theme: Theme.light(),
).diagram;
upload(diagram);
}