beforeChange property

Future<bool> Function(T? from, T to)? beforeChange
getter/setter pair

Callback to intercept and validate tab changes. If it returns false, the tab transition is prevented.

Implementation

Future<bool> Function(T? from, T to)? beforeChange;