Callback to intercept and validate tab changes. If it returns false, the tab transition is prevented.
Future<bool> Function(T? from, T to)? beforeChange;