0 purchases
altfire configurator
AltFire Configurator #
Provides a wrapper class for the FlutterFire RemoteConfig package to simplify its usage.
Getting started #
dependencies:
altfire_configurator: any
copied to clipboard
Usage #
Create an instance of Configurator.
Set default values as needed.
Use the instance of Configurator to retrieve configuration values. You can specify a callback in onConfigUpdated that is called when the configuration values are updated.
final configurator = Configurator();
...
await configurator.setDefaultConfig({'int_parameter', 123});
...
final intConfig = configurator.getIntConfig(
'int_parameter',
onConfigUpdated: (value) {
print('int_parameter: $value');
},
);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.