build method

  1. @override
Widget build (BuildContext context)
override

Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).

Implementation

@override
Widget build(BuildContext context) {
  final RelativeRect offsets = RelativeRect.fromSize(rect.value, size);
  return Positioned(
    top: offsets.top,
    right: offsets.right,
    bottom: offsets.bottom,
    left: offsets.left,
    child: child,
  );
}