getFloatingActionButtonWidget method
Implementation
FloatingActionButton? getFloatingActionButtonWidget(
Icon ready, Icon running) {
return currentState == ApplicationState.ready
? FloatingActionButton(onPressed: run, child: ready)
: currentState == ApplicationState.running
? FloatingActionButton(onPressed: cancel, child: running)
: null;
}