build method

  1. @override
Widget build (
  1. 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 double scaleValue = scale.value;
  final Matrix4 transform = Matrix4.identity()
    ..scale(scaleValue, scaleValue, 1.0);
  return Transform(
    transform: transform,
    alignment: alignment,
    child: child,
  );
}