operator * method

List<Widget> operator *(
  1. int n
)

Creates a list containing n copies of this widget.

Implementation

List<Widget> operator *(int n) => List.generate(n, (_) => this);