getMaterialYouPrimaryColor function

Future<Color> getMaterialYouPrimaryColor()

Returns primary color for material you theme

Implementation

Future<Color> getMaterialYouPrimaryColor() async {
  Map colors = await getMaterialYouColors();

  return colors['system_accent1_400'].toString().toColor();
}