disposePlatform function

void disposePlatform ()

Dispose the existing platform.

Implementation

void disposePlatform() {
  if (_platform != null && !_platform.disposed) {
    _platform.dispose();
  }
}