messenger property

ScaffoldMessengerState get messenger

Returns the nearest ScaffoldMessengerState instance for the current context.

Example usage:

ScaffoldMessengerState messenger = context.messenger;

Implementation

ScaffoldMessengerState get messenger => ScaffoldMessenger.of(this);