BackgroundType.fill constructor
const
BackgroundType.fill({
- @JsonKey(name: 'type') @Default(BackgroundTypeType.fill) BackgroundTypeType type,
- @JsonKey(name: 'fill') required BackgroundFill fill,
- @JsonKey(name: 'dark_theme_dimming') @Default(0) int darkThemeDimming,
The background is automatically filled based on the selected colors.
Implementation
const factory BackgroundType.fill({
/// Type of the background - always fill
@JsonKey(name: 'type')
@Default(BackgroundTypeType.fill)
BackgroundTypeType type,
/// The background fill.
@JsonKey(name: 'fill') required final BackgroundFill fill,
/// Dimming of the background in dark themes, as a percentage; 0-100.
@JsonKey(name: 'dark_theme_dimming') @Default(0) final int darkThemeDimming,
}) = BackgroundTypeFill;