skipCurrentAsset method

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

Signal the native scan loop to skip the next asset it would process. Best-effort: one outstanding skip is consumed by the next per-asset task that checks the flag. No effect when no scan is running.

Default no-op so test fakes don't need to stub this. Real native impls forward to the active ScanSessionTask.

Implementation

@override
Future<void> skipCurrentAsset() async {
  try {
    await _methodChannel.invokeMethod<void>('skipCurrentAsset');
  } on MissingPluginException {
    // Native side hasn't shipped this yet — silent no-op.
  }
}