setState method Null safety

void setState(
  1. Map<String, dynamic> newState
)

Implementation

void setState(Map<String, dynamic>newState) {
  state = newState;
}