backgroundColor method

  1. @override
Color backgroundColor()

Returns the game background color. By default it will return a black color. It cannot be changed at runtime, because the game widget does not get rebuild when this value changes.

Implementation

@override
Color backgroundColor() => _bgColor ?? super.backgroundColor();