build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Build a widget.

Implementation

@override
Widget build(final BuildContext context) {
  final builder = widget.builders[_index];
  if (_index < (widget.builders.length - 1)) {
    _timer = Timer(widget.duration, () => setState(() => _index++));
  }
  return Builder(builder: builder);
}