background method

  1. @override
Widget? background()
override

Override this method to add background widget.

This widget returned by this method will be placed as background of that particular slide. Background is wrapped inside a SizedBox.expand widget so that it stretches to the whole.

If this method returns null, then the background widget will be empty i.e. there will be an empty SizedBox.expand instead.

Implementation

@override
Widget? background() => _background;