onSuccess property Null safety

dynamic Function(T data) onSuccess
final

Implementation

final Function(T data) onSuccess;