getStyleBy method
TextStyle?
getStyleBy(
- List<
String> ks, { - String? fallbackKey,
- StyleMapper? styleMapper,
inherited
Implementation
TextStyle? getStyleBy(
List<String> ks, {
String? fallbackKey,
StyleMapper? styleMapper,
}) {
for (var key in ks) {
var value = getStyle(key, styleMapper);
if (value != null) return value;
}
if (fallbackKey != null) return getStyle(fallbackKey, styleMapper);
return null;
}