Migration guide

If you have a subclass of Notification that overrides
Notification.visitAncestor, then you must either delete the override or
opt-into old style notification dispatch with the following code.

Code before migration:

import

'package:flutter/widgets.dart'

class

MyNotification

extends

Notification

@override

bool

visitAncestor

Element

element

print

'Visiting

$element

);

return

super

visitAncestor

element

);

void

methodThatSendsNotification

BuildContext

context

MyNotification

()

dispatch