describe static method
The full description of state shown by data.
Implementation
static Map<String, Object?> describe(NyBaseState state) {
final StatefulWidget widget = state.widget;
return {
...summary(state),
'controller': widget is NyStatefulWidget
? widget.controller.runtimeType.toString()
: null,
'data': state.data(),
'queryParameters': state.queryParameters(),
'actions': [
for (final Object action in state.stateActions.keys)
_actionName(action),
],
};
}