anchor.diff:    }) {
       assert(text != null);
       assert(text.isNotEmpty);
  -    return SharePlatform.instance.share(
  +    return _platform.share(
         text,
         subject: subject,
         sharePositionOrigin: sharePositionOrigin,
  
positive.code:     assert(paths != null);
      assert(paths.isNotEmpty);
      assert(paths.every((element) => element != null && element.isNotEmpty));
      return SharePlatform.instance.shareFiles(
        paths,
        mimeTypes: mimeTypes,
        subject: subject,
  
negative.code: // found in the LICENSE file.
  
  import 'dart:async';
  import 'dart:io' show Platform;
  import 'dart:ui';
  
  import 'package:flutter/foundation.dart' show kIsWeb, visibleForTesting;
  import 'package:share_plus_platform_interface/share_plus_platform_interface.dart';
  import 'package:share_plus_linux/share_plus_linux.dart';
  
  /// Plugin for summoning a platform share sheet.
  class Share {
    /// Disables the platform override in order to use a manually registered
    /// [SharePlatform] for testing purposes.
    /// See https://github.com/flutter/flutter/issues/52267 for more details.
    @visibleForTesting
    static set disableSharePlatformOverride(bool override) {
      _disablePlatformOverride = override;
    }
  
    static bool _disablePlatformOverride = false;
    static SharePlatform __platform;
  
    // This is to manually endorse the Linux plugin until automatic registration
    // of dart plugins is implemented.
    // See https://github.com/flutter/flutter/issues/52267 for more details.
    static SharePlatform get _platform {
      __platform ??= !kIsWeb && Platform.isLinux && !_disablePlatformOverride
          ? ShareLinux()
          : SharePlatform.instance;
      return __platform;
    }
  
    /// Summons the platform's share sheet to share text.
    ///
    /// Wraps the platform's native share dialog. Can share a text and/or a URL.
  