color property

BuildColor color

It is a simplification of the Theme.of(context) statement.

Do that:

return BuildColor(context)

Implementation

BuildColor get color => BuildColor(this);