isAssignableWith method Null safety

  1. @override
bool isAssignableWith(
  1. dynamic dartValue
)
override

Whether or not a the argument can be assigned to this property.

Implementation

@override
bool isAssignableWith(dynamic dartValue) {
  if (relationshipType == ManagedRelationshipType.hasMany) {
    return destinationEntity.runtime!.isValueListOf(dartValue);
  }
  return destinationEntity.runtime!.isValueInstanceOf(dartValue);
}