startsWithAPolymorphicPrefix function

bool startsWithAPolymorphicPrefix(
  1. String value
)

Implementation

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