offset property

  1. @override
double offset
override

The difference between the animation's value and index.

The offset value must be between -1.0 and 1.0.

This property is typically set by the TabBarView when the user drags left or right. A value between -1.0 and 0.0 implies that the TabBarView has been dragged to the left. Similarly a value between 0.0 and 1.0 implies that the TabBarView has been dragged to the right.

Implementation

@override
double get offset => _indexedController.offset;
  1. @override
void offset=(double value)
override

Implementation

@override
set offset(double value) => _indexedController.offset = value;