CsvButton constructor

const CsvButton({
  1. Key? key,
  2. ButtonStyle? buttonStyle,
  3. CsvConfiguration? csvConfiguration,
  4. required Widget child,
  5. dynamic onDone()?,
  6. dynamic onJsonReceived(
    1. Map<String, dynamic> data
    )?,
  7. dynamic onStringReceived(
    1. String data
    )?,
})

Implementation

const CsvButton(
    {Key? key,
    this.buttonStyle,
    this.csvConfiguration,
    required this.child,
    this.onDone,
    this.onJsonReceived,
    this.onStringReceived})
    : assert(
          (onJsonReceived == null && onStringReceived != null) ||
              (onJsonReceived != null && onStringReceived == null),
          'you can only choose to receive the data as String or as Json, not both'),
      super(key: key);