SignInButton constructor

const SignInButton(
  1. Buttons button, {
  2. Key? key,
  3. required Function onPressed,
  4. bool mini = false,
  5. EdgeInsets padding = EdgeInsets.zero,
  6. ShapeBorder? shape,
  7. String? text,
  8. double elevation = 2.0,
  9. Clip clipBehavior = Clip.none,
  10. TextStyle? textStyle,
})

The constructor is fairly self-explanatory.

Implementation

const SignInButton(
  this.button, {
  Key? key,
  required this.onPressed,
  this.mini = false,
  this.padding = EdgeInsets.zero,
  this.shape,
  this.text,
  this.elevation = 2.0,
  this.clipBehavior = Clip.none,
  this.textStyle,
})  : assert(
        mini != true ||
            !(button == Buttons.google ||
                button == Buttons.googleDark ||
                button == Buttons.facebookNew),
        'Google and FacebookNew buttons do not support mini mode',
      ),
      super(key: key);