chainHandler<T> method

Future chainHandler<T>({
  1. required List<Function> handles,
})

Implementation

Future chainHandler<T>({
  required List<Function> handles,
}) async {
  for (var handle in handles) {
    bool isHandle = await handle();
    if (isHandle) {
      break;
    }
  }
}