This is my way to get a random color:
Color((math.Random().nextDouble() * 0xFFFFFF).toInt()).withOpacity(1.0)
Note:
This import is required.
import 'dart:math' as math;
This is my way to get a random color:
Color((math.Random().nextDouble() * 0xFFFFFF).toInt()).withOpacity(1.0)
Note:
This import is required.
import 'dart:math' as math;