cardBG static method

BackgroundModel cardBG()

Implementation

static BackgroundModel cardBG() {
  var decorationColorModels = <DecorationColorModel>[];
  var decorationColorModel1 = DecorationColorModel(
    documentID: '1',
    color: EliudColors.white,
  );
  decorationColorModels.add(decorationColorModel1);
  var decorationColorModel2 = DecorationColorModel(
    documentID: '2',
    color: EliudColors.whiteTransparent,
  );

  decorationColorModels.add(decorationColorModel2);
  var backgroundModel = BackgroundModel(
    border: true,
    beginGradientPosition: StartGradientPosition.centerLeft,
    endGradientPosition: EndGradientPosition.centerRight,
    decorationColors: decorationColorModels,
  );
  return backgroundModel;
}