BeforeChange<T> typedef Null safety

BeforeChange<T> = Future<bool?> Function(T? prevItem, T? nextItem)

Implementation

typedef Future<bool?> BeforeChange<T>(T? prevItem, T? nextItem);