decodeIconMatchTextDirection static method

bool decodeIconMatchTextDirection(
  1. DartObject? obj
)

Whether a Flutter IconData constant mirrors in a right-to-left layout, as its matchTextDirection declares.

False for anything that does not carry the field, including an obj that is not an IconData at all.

Implementation

static bool decodeIconMatchTextDirection(DartObject? obj) {
  if (obj == null || obj.isNull) return false;
  return getField(obj, 'matchTextDirection')?.toBoolValue() ?? false;
}