onShared property Null safety

Function onShared
final

Implementation

final Function onShared;