build method

dynamic build(
  1. Brightness brightness
)

Implementation

build(Brightness brightness) {
  borderColor = _borderColor ??
      (brightness == Brightness.dark ? Color(0xff1d1d1d) : Color(0xffDBE3E7));
  textFieldColor =
      _textFieldColor ?? (brightness == Brightness.dark ? black : white);
  buttonWidth = _buttonWidth ?? double.infinity;
  buttonHeight = _buttonHeight ?? 48;
  logoHeight = _logoHeight ?? 120;
  background = _background ??
      (brightness == Brightness.dark
          ? BoxDecoration(
              gradient: LinearGradient(
                begin: Alignment.topLeft,
                end: Alignment.bottomRight,
                stops: [0.4, 1.0],
                colors: [
                  Color(0xff000000),
                  Color(0xff343434),
                ],
              ),
            )
          : BoxDecoration(
              gradient: LinearGradient(
                begin: Alignment.topLeft,
                end: Alignment.bottomRight,
                stops: [0.4, 1.0],
                colors: [
                  Color(0xffFFFFFF),
                  Color(0xffF1F0F0),
                ],
              ),
            ));
  spreadRadius = _spreadRadius ?? (brightness == Brightness.dark ? 3 : 1.5);
  blurRadius = _blurRadius ?? (brightness == Brightness.dark ? 6 : 3);
}