SignInButton constructor
const
SignInButton(
- Buttons button, {
- Key? key,
- required VoidCallback? onPressed,
- bool mini = false,
- EdgeInsets padding = const EdgeInsets.all(0),
- ShapeBorder? shape,
- String? text,
- double elevation = 2.0,
- 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);