FieldsDivider constructor

FieldsDivider({
  1. TitleFieldType? type,
  2. String? divider,
  3. String? value,
})

Implementation

factory FieldsDivider({
  TitleFieldType? type,
  String? divider,
  String? value,
}) {
  if (type == null && divider != null) {
    return FieldsDivider.divider(divider);
  } else if (type == TitleFieldType.fieldsDivider && value != null) {
    return FieldsDivider.divider(value);
  }
  return const FieldsDivider._(divider: null, type: null);
}