mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
363 B
13 lines
363 B
import 'package:flutter/foundation.dart';
|
|
|
|
/// {@template platform_helper}
|
|
/// Returns whether the current platform is running on a mobile device.
|
|
/// {@endtemplate}
|
|
class PlatformHelper {
|
|
/// {@macro platform_helper}
|
|
bool get isMobile {
|
|
return defaultTargetPlatform == TargetPlatform.iOS ||
|
|
defaultTargetPlatform == TargetPlatform.android;
|
|
}
|
|
}
|