AndroidPlatform class

Android platform build configuration settings.

Controls Android minimum and target SDK versions, as well as the Android package identifier.

Example:

const android = AndroidPlatform(
  minSdk: 26,
  targetSdk: 34,
  package: 'com.example.bloomapp',
);

Constructors

AndroidPlatform({int minSdk = 24, int targetSdk = 34, String? package})
Creates an AndroidPlatform configuration instance.
const
AndroidPlatform.fromJson(Map<String, dynamic> json)
Constructs an AndroidPlatform from a JSON json map.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
minSdk → int
Minimum supported Android SDK version (defaults to 24).
final
package → String?
Android application package name (e.g. 'com.example.app').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetSdk → int
Target Android SDK compilation version (defaults to 34).
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