state property

  1. @override
TState state
override

A typed view into the component's current JS state object.

Created using typedStateFactoryJs and updated whenever state changes.

Implementation

@override
TState get state {
  // This needs to be a concrete implementation in Dart 2 for soundness;
  // without it, you get a confusing error. See: https://github.com/dart-lang/sdk/issues/36191
  throw UngeneratedError(member: #state,
      message: GeneratedErrorMessages.component1AnnotationOnComponent2);
}
void state=(Map _state)
inherited

Implementation

@override
late Map state;