enableDeveloperMode method

void enableDeveloperMode(
  1. AnimationController controller
)

Connects given controller to the closest AnimationDeveloperTools widget to enable developer mode.

Implementation

void enableDeveloperMode(AnimationController controller) {
  var transfer =
      context.findAncestorWidgetOfExactType<AnimationControllerTransfer>();
  assert(transfer != null,
      'Please place an AnimationDeveloperTools widget inside the widget tree');
  transfer?.controllerProvider(controller);
}