TimelinePaint constructor

TimelinePaint({
  1. required Color lineColor,
  2. required Color backgroundColor,
  3. bool firstElement = false,
  4. bool lastElement = false,
  5. Animation<double>? controller,
})

Implementation

TimelinePaint(
    {required this.lineColor,
    required this.backgroundColor,
    this.firstElement = false,
    this.lastElement = false,
    this.controller})
    : height = new Tween(begin: 0.0, end: 1.0).animate(
        new CurvedAnimation(
          parent: controller ?? AlwaysStoppedAnimation<double>(1),
          curve: new Interval(0.45, 1.0, curve: Curves.ease),
        ),
      ),
      super(repaint: controller);