altfire_configurator 0.1.3
altfire_configurator: ^0.1.3 copied to clipboard
altfire_configurator is a package wrapping FlutterFire Remote Config. 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.
AltFire Configurator #
Provides a wrapper class for the FlutterFire RemoteConfig package to simplify its usage.
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');
},
);