MetadataRow constructor

const MetadataRow({
  1. Key? key,
  2. required String label,
  3. String? value,
  4. Widget? valueWidget,
  5. double labelWidth = 120,
  6. bool copiable = false,
  7. EdgeInsets padding = const EdgeInsets.only(bottom: 8),
})

Implementation

const MetadataRow({
  super.key,
  required this.label,
  this.value,
  this.valueWidget,
  this.labelWidth = 120,
  this.copiable = false,
  this.padding = const EdgeInsets.only(bottom: 8),
}) : assert(
        value != null || valueWidget != null,
        'Either value or valueWidget must be provided',
      );