IIDLogin constructor

const IIDLogin({
  1. Key? key,
  2. required bool isComplete,
  3. required String text,
  4. required String scheme,
  5. required String host,
  6. dynamic onPrincipalIdReceived(
    1. String
    )?,
  7. dynamic onError(
    1. String
    )?,
  8. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
  9. Gradient gradient = const LinearGradient(colors: [Color(0xFF522785), Color(0xFFED1E79)], begin: Alignment.centerLeft, end: Alignment.centerRight),
  10. TextStyle textStyle = const TextStyle(color: Color(0xFFFFFFFF), fontWeight: FontWeight.bold),
})

Implementation

const IIDLogin({
  super.key,
  required this.isComplete,
  required this.text,
  required this.scheme,
  required this.host,
  this.onPrincipalIdReceived,
  this.onError,
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.gradient = const LinearGradient(
    colors: [Color(0xFF522785), Color(0xFFED1E79)],
    begin: Alignment.centerLeft,
    end: Alignment.centerRight,
  ),
  this.textStyle =
      const TextStyle(color: Color(0xFFFFFFFF), fontWeight: FontWeight.bold),
});