readTransaction method Null safety

  1. @JSName('readTransaction')
Future<SqlTransaction> readTransaction()
@JSName('readTransaction')

Implementation

@JSName('readTransaction')
Future<SqlTransaction> readTransaction() {
  var completer = new Completer<SqlTransaction>();
  _readTransaction((value) {
    completer.complete(value);
  }, (error) {
    completer.completeError(error);
  });
  return completer.future;
}