getBackground method
Implementation
getBackground(String? settingsBackground) {
if (settingsBackground == null) {
return BoxDecoration(color: Colors.transparent);
} else {
return BoxDecoration(
image: DecorationImage(
image: AssetImage(settingsBackground),
fit: BoxFit.cover,
),
);
}
}