unboxFuture method

Future<T?> unboxFuture()

Unboxes a Future/Future

Implementation

Future<T?> unboxFuture() async {
  final a = await Future.value(this);
  if (a != null) {
    return await a;
  } else {
    return null;
  }
}