getPlatform function

PlatformRef getPlatform ()

Returns the current platform.

Implementation

PlatformRef getPlatform() =>
    _platform != null && !_platform.disposed ? _platform : null;