create static method

BackgroundFillGradient create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "backgroundFillGradient",
  3. String special_return_type = "backgroundFill",
  4. num? top_color,
  5. num? bottom_color,
  6. num? rotation_angle,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static BackgroundFillGradient create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "backgroundFillGradient",
  String special_return_type = "backgroundFill",
  num? top_color,
  num? bottom_color,
  num? rotation_angle,
}) {
  // BackgroundFillGradient backgroundFillGradient = BackgroundFillGradient({
  final Map backgroundFillGradient_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "top_color": top_color,
    "bottom_color": bottom_color,
    "rotation_angle": rotation_angle,
  };

  backgroundFillGradient_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (backgroundFillGradient_data_create_json.containsKey(key) == false) {
        backgroundFillGradient_data_create_json[key] = value;
      }
    });
  }
  return BackgroundFillGradient(backgroundFillGradient_data_create_json);
}