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
nameoverride.const
Properties
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