isToOne property

bool get isToOne

Whether this is a "to-one" relation.

Implementation

bool get isToOne =>
    type == RelationType.oneToOne || type == RelationType.manyToOne;