SignInButton constructor

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

The constructor is fairly self-explanatory.

Implementation

const SignInButton(
  this.button, {
  Key? key,
  required this.onPressed,
  this.mini = false,
  this.padding = const EdgeInsets.all(0),
  this.shape,
  this.text,
  this.elevation = 2.0,
  this.width,
})  : assert(
          mini != true ||
              !(button == Buttons.Google ||
                  button == Buttons.GoogleDark ||
                  button == Buttons.FacebookNew),
          'Google and FacebookNew buttons do not support mini mode'),
      assert(width == null || width > 0, 'Width must be positive'),
      super(key: key);