debugController property

  1. @visibleForTesting
AnimationController? debugController

When asserts are enabled, returns the animation controller that is used to drive the resizing.

Otherwise, returns null.

This getter is intended for use in framework unit tests. Applications must not depend on its value.

Implementation

@visibleForTesting
AnimationController? get debugController {
  AnimationController? controller;
  assert(() {
    controller = _controller;
    return true;
  }());
  return controller;
}