getActivity<T extends ActiveController> static method

T getActivity<T extends ActiveController>(
  1. BuildContext context
)

Gets the current Controller based on the Activator and context.

Activity.getActivity<BaseController>(context).totalTaskLevels();

Implementation

static T getActivity<T extends ActiveController>(BuildContext context) {
  final Activator<T> result = of(context);
  return result.activeController();
}