FFChartData constructor

FFChartData({
  1. @Deprecated('This field is deprecated.') String? legacyLabel,
  2. FFFirestoreChartData? firestoreDocuments,
  3. FFNumbersList? numbersList,
  4. FFChartData_DataSourceType? sourceType,
  5. FFText? legendName,
  6. FFColor? legacyColor,
  7. FFText? label,
  8. FFVariable? singleValue,
  9. FFColorValue? colorValue,
})

Implementation

factory FFChartData({
  @$core.Deprecated('This field is deprecated.') $core.String? legacyLabel,
  FFFirestoreChartData? firestoreDocuments,
  FFNumbersList? numbersList,
  FFChartData_DataSourceType? sourceType,
  FFText? legendName,
  FFColor? legacyColor,
  FFText? label,
  FFVariable? singleValue,
  FFColorValue? colorValue,
}) {
  final result = create();
  if (legacyLabel != null) result.legacyLabel = legacyLabel;
  if (firestoreDocuments != null)
    result.firestoreDocuments = firestoreDocuments;
  if (numbersList != null) result.numbersList = numbersList;
  if (sourceType != null) result.sourceType = sourceType;
  if (legendName != null) result.legendName = legendName;
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (label != null) result.label = label;
  if (singleValue != null) result.singleValue = singleValue;
  if (colorValue != null) result.colorValue = colorValue;
  return result;
}