getAccentColor function

Color getAccentColor({
  1. Color? accent,
})

getAccentColor is a helper function to get the accent color of the app.

If accent is not null, it will return kAccentColor instead.

Implementation

Color getAccentColor({Color? accent}) {
  return accent ?? kAccentColor;
}