isRequired property Null safety

bool isRequired
final

Whether or not this relationship is required.

By default, Relate properties are not required to support the default value of onDelete. By setting this value to true, an instance of this entity cannot be created without a valid value for the relationship property.

Implementation

final bool isRequired;