onCreated property Null safety

Function onCreated
final

Implementation

final Function onCreated;