FFSwitchListTile constructor

FFSwitchListTile({
  1. bool? legacyInitialValue,
  2. FFText? title,
  3. FFText? subtitle,
  4. bool? legacyDense,
  5. FFPadding? contentPadding,
  6. FFColor? legacyTileColor,
  7. FFBorderRadius? borderRadius,
  8. FFColor? legacyActiveColor,
  9. FFColor? legacyActiveTrackColor,
  10. bool? leading,
  11. FFDisable? disabled,
  12. FFColor? legacyDisabledActiveColor,
  13. FFColor? legacyDisabledActiveTrackColor,
  14. FFBooleanValue? initialValueValue,
  15. FFBooleanValue? denseValue,
  16. FFColorValue? tileColorValue,
  17. FFColorValue? activeColorValue,
  18. FFColorValue? activeTrackColorValue,
  19. FFColorValue? disabledActiveColorValue,
  20. FFColorValue? disabledActiveTrackColorValue,
})

Implementation

factory FFSwitchListTile({
  $core.bool? legacyInitialValue,
  FFText? title,
  FFText? subtitle,
  $core.bool? legacyDense,
  FFPadding? contentPadding,
  FFColor? legacyTileColor,
  FFBorderRadius? borderRadius,
  FFColor? legacyActiveColor,
  FFColor? legacyActiveTrackColor,
  $core.bool? leading,
  FFDisable? disabled,
  FFColor? legacyDisabledActiveColor,
  FFColor? legacyDisabledActiveTrackColor,
  FFBooleanValue? initialValueValue,
  FFBooleanValue? denseValue,
  FFColorValue? tileColorValue,
  FFColorValue? activeColorValue,
  FFColorValue? activeTrackColorValue,
  FFColorValue? disabledActiveColorValue,
  FFColorValue? disabledActiveTrackColorValue,
}) {
  final result = create();
  if (legacyInitialValue != null)
    result.legacyInitialValue = legacyInitialValue;
  if (title != null) result.title = title;
  if (subtitle != null) result.subtitle = subtitle;
  if (legacyDense != null) result.legacyDense = legacyDense;
  if (contentPadding != null) result.contentPadding = contentPadding;
  if (legacyTileColor != null) result.legacyTileColor = legacyTileColor;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (legacyActiveColor != null) result.legacyActiveColor = legacyActiveColor;
  if (legacyActiveTrackColor != null)
    result.legacyActiveTrackColor = legacyActiveTrackColor;
  if (leading != null) result.leading = leading;
  if (disabled != null) result.disabled = disabled;
  if (legacyDisabledActiveColor != null)
    result.legacyDisabledActiveColor = legacyDisabledActiveColor;
  if (legacyDisabledActiveTrackColor != null)
    result.legacyDisabledActiveTrackColor = legacyDisabledActiveTrackColor;
  if (initialValueValue != null) result.initialValueValue = initialValueValue;
  if (denseValue != null) result.denseValue = denseValue;
  if (tileColorValue != null) result.tileColorValue = tileColorValue;
  if (activeColorValue != null) result.activeColorValue = activeColorValue;
  if (activeTrackColorValue != null)
    result.activeTrackColorValue = activeTrackColorValue;
  if (disabledActiveColorValue != null)
    result.disabledActiveColorValue = disabledActiveColorValue;
  if (disabledActiveTrackColorValue != null)
    result.disabledActiveTrackColorValue = disabledActiveTrackColorValue;
  return result;
}