LaunchdarklyFlutter constructor Null safety

LaunchdarklyFlutter(
  1. {Map<String, void Function(String?)>? flagListeners,
  2. Map<String, void Function(List<String>)>? allFlagsListeners}
)

Constructor for the Client for accessing LaunchDarkly's Feature Flag system. The main entry point. flagListeners (optional) is the map of flag keys and callbacks.

Implementation

LaunchdarklyFlutter({this.flagListeners, this.allFlagsListeners}) {
  flagListeners ??= {};
  allFlagsListeners ??= {};

  _channel.setMethodCallHandler(handlerMethodCalls);
}