currentPlatform property
ResponsivePlatform
get
currentPlatform
Gets the current platform.
Implementation
static ResponsivePlatform get currentPlatform {
if (kIsWeb) return ResponsivePlatform.web;
switch (defaultTargetPlatform) {
case TargetPlatform.iOS:
return ResponsivePlatform.iOS;
case TargetPlatform.android:
return ResponsivePlatform.android;
case TargetPlatform.macOS:
return ResponsivePlatform.macOS;
case TargetPlatform.windows:
return ResponsivePlatform.windows;
case TargetPlatform.linux:
return ResponsivePlatform.linux;
case TargetPlatform.fuchsia:
return ResponsivePlatform.fuchsia;
}
}