Handles a given JIntent to update the state.
Invokes the logic encapsulated in the intent and applies any state changes.
Future<void> intent(JIntent<T> intent) => intent.invoke(this);