reset method

void reset({
  1. bool resetId = true,
})

Sets the message to the initial Message value.

Implementation

void reset({bool resetId = true}) {
  if (resetId) {
    final newId = const Uuid().v4();
    _initialMessage = _initialMessage.copyWith(id: newId);
  }
  // Reset the message to the initial value.
  message = _initialMessage;
}