Add const MaterialStatePropertyAll class. (#104127)

This commit is contained in:
Darren Austin
2022-05-19 09:35:33 -07:00
committed by GitHub
parent b1f10cebbe
commit 17e2fce1cf
27 changed files with 190 additions and 166 deletions

View File

@@ -64,7 +64,7 @@ class _TokenDefaultsM3 extends ButtonStyle {
@override
MaterialStateProperty<TextStyle?> get textStyle =>
MaterialStateProperty.all<TextStyle?>(${textStyle("$tokenGroup.label-text")});
MaterialStatePropertyAll<TextStyle?>(${textStyle("$tokenGroup.label-text")});
@override
MaterialStateProperty<Color?>? get backgroundColor =>${_backgroundColor()};