notifyHost function
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'),
),
);
}
}