getOffset abstract method

Offset getOffset({
  1. required Offset begin,
  2. required Offset end,
  3. required double progress,
})

Gets the FloatingActionButton's position relative to the origin of the Scaffold based on progress.

begin is the Offset provided by the previous FloatingActionButtonLocation.

end is the Offset provided by the new FloatingActionButtonLocation.

progress is the current progress of the transition animation. When progress is 0.0, the returned Offset should be equal to begin. when progress is 1.0, the returned Offset should be equal to end.

Implementation

Offset getOffset({ required Offset begin, required Offset end, required double progress });