build method
Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).
Implementation
Widget build(BuildContext context) {
return new Row(
mainAxisAlignment: MainAxisAlignment.center,
children: new List<Widget>.generate(itemCount, _buildDot),
);
}