- New non-backwards compatible API.
UsePlatform.currentto access the current platform,
andPlatform.current.nativePlatformto either get access to native
platform information, or get anullon non-native platforms.
SimilarlyPlatform.current.browserPlatformis only non-nullon the web.
Mocking APIs are moved to a separate library to ensure they are
only used for testing, and to allow better performance in production.
Legacy APIs are deprecated, but retained and emulated using the new API.
Usedart fixto migrate off the deprecated API.