BloomConstant class

Metadata annotation declaring a static constant exported by the host native platform.

Instructs the code generator or runtime to expose synchronous host constants into the module's cached constant registry.

Example:

@BloomConstant('DEVICE_MODEL')
String? get deviceModel => getProperty<String>('DEVICE_MODEL');

Constructors

BloomConstant([String? name])
Creates a BloomConstant annotation with an optional custom key name override.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String?
Custom constant key name override. When omitted, the field name is used.
final
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