SignInButton constructor

SignInButton(
  1. Buttons button, {
  2. required Function onPressed,
  3. bool mini = false,
  4. EdgeInsets padding = const EdgeInsets.all(0),
  5. ShapeBorder? shape,
  6. String? text,
  7. double elevation = 2.0,
})

The constructor is fairly self-explanatory.

Implementation

SignInButton(
  this.button, {
  required this.onPressed,
  this.mini = false,
  this.padding = const EdgeInsets.all(0),
  this.shape,
  this.text,
  this.elevation = 2.0,
}) : assert(
          mini != true ||
              !(button == Buttons.Google ||
                  button == Buttons.GoogleDark ||
                  button == Buttons.FacebookNew),
          "Google and FacebookNew buttons do not support mini mode");