notifyHost function

void notifyHost(
  1. String callback,
  2. void call()
)

Implementation

void notifyHost(String callback, void Function() call) {
  try {
    call();
  } catch (error, stack) {
    FlutterError.reportError(
      FlutterErrorDetails(
        exception: error,
        stack: stack,
        library: 'bemobi_smartcheckout_flutter',
        context: ErrorDescription('while calling the host $callback callback'),
      ),
    );
  }
}