show method

Future<void> show(
  1. bool animation
)

Implementation

Future<void> show(bool animation) {
  if (isPersistentCallbacks) {
    Completer<void> completer = Completer<void>();
    _ambiguate(SchedulerBinding.instance)!.addPostFrameCallback((_) =>
        completer
            .complete(_animationController.forward(from: animation ? 0 : 1)));
    return completer.future;
  } else {
    return _animationController.forward(from: animation ? 0 : 1);
  }
}