completeWithSync method

Future<void> completeWithSync(
  1. T fn()
)

Implementation

Future<void> completeWithSync(T Function() fn) async {
  try {
    complete(fn());
  } catch (e) {
    completeError(e);
  }
}