start method Null safety

Future<void> start(
  1. LDConfig config,
  2. LDUser user

Initialize the SDK with the given LDConfig and LDUser.

This should be called before any other SDK methods to initialize the native SDK instance. Note that the SDK requires the flutter bindings to be initialized to allow bridging communication. In order to start the SDK before runApp is called, you must ensure the binding is initialized with WidgetsFlutterBinding.ensureInitialized.


static Future<void> start(LDConfig config, LDUser user) async {
  await _channel.invokeMethod('start', {'config': config._toCodecValue(_sdkVersion), 'user': user._toCodecValue()});