showLottieOverlay method

Future<bool> showLottieOverlay({
  1. bool? force,
  2. int? repetitions,
  3. String? animationUrl,
  4. VoidCallback? onHide,
})

Implementation

Future<bool> showLottieOverlay(
    {bool? force,
    int? repetitions,
    String? animationUrl,
    VoidCallback? onHide}) async {
  if (!_showLottieOverlay(
      animationUrl: animationUrl,
      repetitions: repetitions,
      onHide: onHide,
      force: force ?? false)) {
    return false;
  }
  return _completer.future;
}