useTabController function
TabController
useTabController({
- required int initialLength,
- TickerProvider? vsync,
- int initialIndex = 0,
- List<
Object?> ? keys,
Implementation
TabController useTabController({
required int initialLength,
TickerProvider? vsync,
int initialIndex = 0,
List<Object?>? keys,
}) {
vsync ??= useSingleTickerProvider(keys: keys);
return use(
_TabControllerHook(
vsync: vsync,
length: initialLength,
initialIndex: initialIndex,
keys: keys,
),
);
}