of static method

List<Message> of(
  1. BuildContext context
)

Gets the most recent app.Message from the StateMessageStream.

Implementation

static List<app.Message> of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<StateMessageStream>()!
      .notifier!
      .messages;
}