ifRunning method

Widget ifRunning(
  1. Widget busyIndicator, {
  2. required Widget otherwise,
})

ifRunning Shows busyIndicator when activeController is Running a long task

Implementation

Widget ifRunning(Widget busyIndicator, {required Widget otherwise}) {
  return isRunning ? busyIndicator : otherwise;
}