style: apply dart format across project
This commit is contained in:
@@ -2,23 +2,23 @@ import 'package:flutter/foundation.dart';
|
||||
|
||||
class PlatformHelper {
|
||||
static bool get isWeb => kIsWeb;
|
||||
|
||||
|
||||
static bool get isIOS {
|
||||
if (kIsWeb) return false;
|
||||
return defaultTargetPlatform == TargetPlatform.iOS;
|
||||
}
|
||||
|
||||
|
||||
static bool get isAndroid {
|
||||
if (kIsWeb) return false;
|
||||
return defaultTargetPlatform == TargetPlatform.android;
|
||||
}
|
||||
|
||||
|
||||
static bool get isMobile => isIOS || isAndroid;
|
||||
|
||||
|
||||
static bool get isDesktop {
|
||||
if (kIsWeb) return false;
|
||||
return defaultTargetPlatform == TargetPlatform.linux ||
|
||||
defaultTargetPlatform == TargetPlatform.macOS ||
|
||||
defaultTargetPlatform == TargetPlatform.windows;
|
||||
defaultTargetPlatform == TargetPlatform.macOS ||
|
||||
defaultTargetPlatform == TargetPlatform.windows;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user