PlatformsConfig class
Combined platforms configuration block aggregating Android, iOS, and Web settings.
Example:
const platforms = PlatformsConfig(
android: AndroidPlatform(minSdk: 24),
ios: IosPlatform(minVersion: '15.0'),
web: WebPlatform(title: 'My App'),
);
Constructors
- PlatformsConfig({AndroidPlatform android = const AndroidPlatform(), IosPlatform ios = const IosPlatform(), WebPlatform web = const WebPlatform()})
-
Creates a PlatformsConfig instance.
const
-
PlatformsConfig.fromJson(Map<
String, dynamic> json) -
Constructs a PlatformsConfig from a JSON
jsonmap.factory
Properties
- android → AndroidPlatform
-
Android platform build settings.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ios → IosPlatform
-
iOS platform build settings.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- web → WebPlatform
-
Web platform build settings.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this configuration to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited