getPrimaryColor function

Color getPrimaryColor({
  1. Color? primary,
})

getPrimaryColor is a helper function to get the primary color of the app.

If primary is not null, it will return kPrimaryColor instead.

Implementation

Color getPrimaryColor({Color? primary}) {
  return primary ?? kPrimaryColor;
}