VPlatforms class abstract
This is a class named VPlatforms that contains static properties and methods for detecting the current platform the code is running on. It includes methods for returning a boolean value for whether the current platform is web, mobile, Android, iOS, Mac OS, and other operating systems. There are also methods for getting the current platform's name and whether it's a desktop platform, as well as detecting whether the code is running on mobile when using a browser. Additionally, there is a method for converting a file to a multipart HTTP request.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- currentOs → VOs
-
no setter
- currentPlatform → String
-
no setter
- isAndroid → bool
-
no setter
- isDarwin → bool
-
no setter
- isDeskTop → bool
-
no setter
- isIOS → bool
-
no setter
- isLinux → bool
-
no setter
- isMacOs → bool
-
no setter
- isMobile → bool
-
no setter
- isWeb ↔ bool
-
getter/setter pair
- isWebRunOnMobile → bool
-
no setter
- isWindows → bool
-
no setter
- osInWeb → VOs
-
no setter
Static Methods
-
getMultipartFile(
{required VPlatformFile source, String fieldName = "file"}) → Future< MultipartFile>