config static method

dynamic config({
  1. MaterialColor? theme,
  2. Gradient? primaryGradient,
})

Implementation

static config({MaterialColor? theme, Gradient? primaryGradient}) {
  /// 配置主题
  if (theme != null) {
    CommonColors.theme = theme;
  }
  if (primaryGradient != null) {
    CommonColors.primaryGradient = primaryGradient;
  }
}