close method

  1. @override
Future close()
override

Closes the sink.

Calling this method more than once is allowed, but does nothing.

Neither add nor addError must be called after this method.

Implementation

@override
Future close() {
  isConnected = false;
  return Future.value();
}