initMethod method
Future<void>
initMethod(
- BuildContext context, {
- bool showNativeUI = true,
- Widget? customWidget()?,
Initializes the platform-specific method for app sync.
context: A BuildContext used for dialogs and other UI elements.showNativeUI: A boolean indicating whether to display the native UI dialog. Defaults totrue.customWidget: An optional function that returns a custom widget for the dialog.
Throws an UnimplementedError if the method is not implemented by a platform.
Implementation
Future<void> initMethod(
BuildContext context, {
bool showNativeUI = true,
Widget? Function(Map<String, dynamic>)? customWidget,
}) {
throw UnimplementedError('initMethod() has not been implemented.');
}