launch method

  1. @override
Future<void> launch()
override

Launches the Offerwall.

This method should be called after the SDK has been configured.

Throws an UnimplementedError if the platform-specific implementation has not been provided.

Implementation

@override
Future<void> launch() async {
  try {
    await methodChannel.invokeMethod('launch');
  } on PlatformException {
    rethrow;
  } catch (e) {
    throw PlatformException(
        code: 'LAUNCH_ERROR', message: 'Failed to launch: $e');
  }
}