of static method

Implementation

static ActionController? of(BuildContext context) => context
    .findAncestorStateOfType<_DefaultActionControllerState>()
    ?._controller;