getStyleBy method

TextStyle? getStyleBy(
  1. List<String> ks, {
  2. String? fallbackKey,
  3. 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;
}