close method

Future close()

Implementation

Future close() async {
  if (_sw != null) malloc.free(_sw!);
  _sw = null;
}