TCsvColumn.image constructor

const TCsvColumn.image({
  1. required String key,
  2. required String header,
  3. bool isRequired = false,
  4. dynamic defaultValue,
  5. List<String> aliases = const [],
  6. String? validator(
    1. dynamic value
    )?,
  7. String format(
    1. dynamic value
    )?,
  8. String? placeholder,
  9. String? helperText,
  10. double minWidth = 200,
  11. double? maxWidth,
  12. int? flex,
  13. Alignment alignment = Alignment.centerLeft,
  14. Future<String> uploadCallback(
    1. PlatformFile file
    )?,
  15. String imageSeparator = '|',
})

Creates an image filename column with upload support. uploadCallback receives a PlatformFile and returns the server URL (GUID-named). Multiple images are separated by imageSeparator (default |).

Implementation

const TCsvColumn.image({
  required this.key,
  required this.header,
  this.isRequired = false,
  this.defaultValue,
  this.aliases = const [],
  this.validator,
  this.format,
  this.placeholder,
  this.helperText,
  this.minWidth = 200,
  this.maxWidth,
  this.flex,
  this.alignment = Alignment.centerLeft,
  this.uploadCallback,
  this.imageSeparator = '|',
}) : type = TCsvColumnType.image;