notify<TParams> static method

Future<bool> notify<TParams>({
  1. String? url,
  2. int index = 0,
  3. required String name,
  4. TParams? params,
})

Send a notification to the page.

Notifications will be triggered when the page enters the foreground. Notifications with the same name will be overwritten.

Implementation

static Future<bool> notify<TParams>({String? url, int index = 0, required String name, TParams? params}) =>
    ThrioNavigatorImplement.shared().notify<TParams>(url: url, index: index, name: name, params: params);