refresh abstract method

  1. @mustCallSuper
void refresh()

It's used to notify listeners that the state has been updated. It is typically called after making changes to the state object.

This method triggers the Lifecycle.didUpdate event, which allows listeners to react to the updated state.

Implementation

@mustCallSuper

/// It's used to notify listeners that the state has been updated.
/// It is typically called after making changes to the state object.
///
/// This method triggers the `Lifecycle.didUpdate` event,
/// which allows listeners to react to the updated state.
void refresh();