startHeadless method

Future<void> startHeadless(
  1. OtplessResultCallback callback,
  2. Map<String, dynamic> jsonObject
)

Implementation

Future<void> startHeadless(
    OtplessResultCallback callback, Map<String, dynamic> jsonObject) async {
  _callback = callback;
  await methodChannel
      .invokeMethod("startHeadless", {'arg': json.encode(jsonObject)});
}