getKey method Null safety

Future getKey (
  1. dynamic key
)

Implementation

Future getKey(key) {
  try {
    var request = _getKey(key);

    return _completeRequest(request);
  } catch (e, stacktrace) {
    return new Future.error(e, stacktrace);
  }
}