OffsetChangedCallback typedef

OffsetChangedCallback = void Function(Size size, EdgeInsets offset, EdgeInsets rootPadding)

OffsetChangedCallback is the method called when the widget is offset. It has three parameters, size, offset and rootPadding.

The size is the size of the widget after it is offset. The offset is the offset of the widget from the edge of the root layout. The rootPadding is the padding value from the root layout to the edge of the screen.

Implementation

typedef OffsetChangedCallback = void Function(
  Size size,
  EdgeInsets offset,
  EdgeInsets rootPadding,
);