closeAll<T> static method

Future<void> closeAll<T>([
  1. T? result
])

Implementation

static Future<void> closeAll<T>([T? result]) async {
  final queueCopy = List<_LayerInfo>.from(_layerQueue);

  for (var i = queueCopy.length - 1; i >= 0; i--) {
    final info = queueCopy[i];
    await _closeLayer(info, result, true);
  }
}