InjectInfoPlistKey class final

Sets a key-value pair in ios/Runner/Info.plist.

value may be a String, bool, List, or Map matching the plist value types. The executor is responsible for serializing value into the correct plist XML node type.

Example

InjectInfoPlistKey(key: 'NSCameraUsageDescription', value: 'Camera access needed.')
Inheritance

Constructors

InjectInfoPlistKey({required String key, required Object value, String platform = 'ios'})
Creates an InjectInfoPlistKey operation.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The plist key to set.
final
platform String
Target platform: 'ios' (default) or 'macos'. The dispatcher resolves the canonical Info.plist path off this value via PlatformHelper so the iOS variant never accidentally lands inside the macOS Runner.app.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object
The plist value. Must be a String, bool, List, or Map.
final

Methods

describe() String
Returns a human-readable dry-run line for this operation.
override
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