isOptional property Null safety

bool isOptional

Implementation

bool get isOptional {
  return optionalType != null;
}