screen method
The background of the screen name: the keys of screens.<name>
over this background's own; this one when the screen has none. The
name is compared without case, - and _.
Implementation
ThemeBackgroundData screen(String name) {
final own = screens[ThemeValues.canonical(name)];
if (own == null) {
return this;
}
return ThemeBackgroundData(
color: own.color ?? color,
image: own.image == null ? image : own.image!.over(image),
overlay: own.overlay ?? overlay,
animation: own.animation ?? animation,
effect: own.effect ?? effect,
transition: own.transition ?? transition,
frameRate: own.frameRate ?? frameRate,
);
}