startsWithAPolymorphicPrefix function Null safety

bool startsWithAPolymorphicPrefix(
  1. String value
)

Implementation

bool startsWithAPolymorphicPrefix(String value) {
  for (var prefix in polymorphicPrefixes) {
    if (value.startsWith(prefix)) {
      return true;
    }
  }
  return false;
}