remove static method

void remove()

Implementation

static void remove() {
  _widgetsBinding?.allowFirstFrame();
  _widgetsBinding = null;
  if (kIsWeb) {
    // Use SchedulerBinding to avoid white flash on splash removal.
    SchedulerBinding.instance.addPostFrameCallback((_) {
      try {
        _channel.invokeMethod('remove');
      } catch (e) {
        throw Exception(
          '$e\nDid you forget to run "dart run flutter_native_splash:create"?',
        );
      }
    });
  }
}