getState<T> method

T? getState<T>(
  1. String key
)

Get current state value

Implementation

T? getState<T>(String key) {
  final controller = Air().debugStates[key];
  if (controller == null) return null;
  return controller.value as T?;
}