wrap<T> static method

Future<GQLResult<T>> wrap<T>(
  1. Future<T> func()
)

Static method for backward compatibility and easy usage

Implementation

static Future<GQLResult<T>> wrap<T>(Future<T> Function() func) async {
  return _instance.call(func);
}