initMethod method

Future<void> initMethod(
  1. BuildContext context, {
  2. bool showNativeUI = true,
  3. Widget? customWidget(
    1. Map<String, dynamic>
    )?,
})

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 to true.
  • 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.');
}