getBackground method

dynamic getBackground(
  1. String? settingsBackground
)

Implementation

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