drawerBG static method
BackgroundModel
drawerBG(
- String bgName,
- RgbModel appColor1,
- RgbModel appColor2
)
Implementation
static BackgroundModel drawerBG(
String bgName,
RgbModel appColor1,
RgbModel appColor2,
) {
var decorationColorModels = <DecorationColorModel>[];
var decorationColorModel1 =
DecorationColorModel(documentID: '1', color: appColor2, stop: -1);
decorationColorModels.add(decorationColorModel1);
var decorationColorModel2 =
DecorationColorModel(documentID: '2', color: appColor1, stop: -1);
decorationColorModels.add(decorationColorModel2);
var backgroundModel = BackgroundModel(
beginGradientPosition: StartGradientPosition.topLeft,
endGradientPosition: EndGradientPosition.bottomRight,
decorationColors: decorationColorModels,
);
return backgroundModel;
}