- Add properties to the
proplist in state in order for the state to update
List<Object> get props => [message, id, cameraState];- Add
idwhen emitting theCameraStatusEvent
emit(CameraUseState(
message: response.bodyString,
id: state.id,
cameraState: cameraState));- Although the application can update the UI with a stopwatch, the code to run the program gets quite long. The state is emitted multiple times in order to update the stopwatch.