stateIcon property

IconData get stateIcon

Implementation

IconData get stateIcon {
  switch (module.state) {
    case ModuleLifecycleState.active:
      return Icons.play_circle_filled;
    case ModuleLifecycleState.suspended:
      return Icons.pause_circle_filled;
    case ModuleLifecycleState.error:
      return Icons.error;
    case ModuleLifecycleState.uninitialized:
      return Icons.radio_button_unchecked;
    default:
      return Icons.circle_outlined;
  }
}