MyNotification

()

dispatch

context

);

Code after migration:

import

'package:flutter/widgets.dart'

class

MyNotification

extends

Notification

bool

visitAncestor

Element

element

print

'Visiting

$element

);

if

element

is

ProxyElement

final

Widget

widget

element

widget

if

widget

is

NotificationListener

MyNotification

>)

return

widget