required property

bool get required

Implementation

bool get required => constrains != null && constrains!.required == true;