firebase_remote_helper 0.0.1+2 copy "firebase_remote_helper: ^0.0.1+2" to clipboard
firebase_remote_helper: ^0.0.1+2 copied to clipboard

This plugin will help you easier to use firebase remote config.

Firebase Remote Helper #

Usage #

Await for the initialization

// Get the instance
final remoteHelper = FirebaseRemoteHelper.instance;

// Initialize
await remoteHelper.initial(
    fetchTimeout: const Duration(minutes: 1), // Optinal: default is 1 minute
    minimumFetchInterval: const Duration(minutes: 60), // Optinal: default is 60 minutes
    defaultParameters: {}, // Optinal: default is not set
);

Or you can call initial and await for it later:

// Initialize
remoteHelper.initial(
    fetchTimeout: const Duration(minutes: 1), // Optinal: default is 1 minute
    minimumFetchInterval: const Duration(minutes: 60), // Optinal: default is 60 minutes
    defaultParameters: {}, // Optinal: default is not set
);

// And wait for the initial later
await remoteHelper.ensureInitialized;

Get value

remoteHelper.get('key'); // .asBool, .asInt, .asDouble, .asString, .asMap

remoteHelper.getInt('key');
remoteHelper.getBool('key');
remoteHelper.getDouble('key');
remoteHelper.getString('key');
remoteHelper.getMap('key');
2
likes
0
pub points
54%
popularity

Publisher

verified publisherlamnhan.dev

This plugin will help you easier to use firebase remote config.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

firebase_remote_config, flutter

More

Packages that depend on firebase_remote_helper