init method

  1. @override
Future<int?> init(
  1. String key
)
override

Initializes the SDK using the provided key.

Returns 0 on success, or a non-zero error code if initialization fails.

Implementation

@override
Future<int?> init(String key) async {
  return await methodChannel.invokeMethod<int>('init', {'key': key});
}