summary static method

Map<String, Object?> summary(
  1. NyBaseState<StatefulWidget> state
)

The one-line description of state used to list the states on screen.

Implementation

static Map<String, Object?> summary(NyBaseState state) => {
  'name': state.stateName,
  'state': state.runtimeType.toString(),
  'widget': state.widget.runtimeType.toString(),
  'kind': state is NyPage
      ? 'NyPage'
      : state is NyState
      ? 'NyState'
      : 'NyBaseState',
};