primaryImage method
Returns primary image for the proper mode.
Implementation
Image primaryImage() {
return palette.brightness() == Brightness.light
? resourceValues.lightMode!.primaryImage!
: resourceValues.darkMode!.primaryImage!;
}