backgroundColor property

Color? backgroundColor
final

The color with which to fill the circle. Changing the background color will cause the avatar to animate to the new color.

If a backgroundColor is not specified and ThemeData.useMaterial3 is true, ColorScheme.primaryContainer will be used, otherwise the theme's ThemeData.primaryColorLight is used with dark foreground colors, and ThemeData.primaryColorDark with light foreground colors.

Implementation

final Color? backgroundColor;