AltFire Configurator
Provides a wrapper class for the FlutterFire RemoteConfig package to simplify its usage.
It was created to make Firebase SDK versioning and methods easier to use. It is recommended to use the various altfire packages as a set.
Getting started
dependencies:
altfire_configurator: any
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 inonConfigUpdated
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');
},
);
Libraries
- altfire_configurator
- altfire_configurator with FlutterFire Remote Config.