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