S2ModalWillOpen<T> typedef Null safety

S2ModalWillOpen<T> = Future<bool> Function(T state)

Callback for event modal will open

Implementation

typedef S2ModalWillOpen<T> = Future<bool> Function(T state);