WiredashThemeData constructor

WiredashThemeData({
  1. Brightness brightness = Brightness.light,
  2. DeviceClass deviceClass = DeviceClass.handsetLarge400,
  3. Color? primaryColor,
  4. Color? secondaryColor,
  5. Color? textOnPrimary,
  6. Color? textOnSecondary,
  7. Color? primaryBackgroundColor,
  8. Color? secondaryBackgroundColor,
  9. Color? primaryTextOnBackgroundColor,
  10. Color? secondaryTextOnBackgroundColor,
  11. Color? primaryContainerColor,
  12. Color? textOnPrimaryContainerColor,
  13. Color? secondaryContainerColor,
  14. Color? textOnSecondaryContainerColor,
  15. Color? appBackgroundColor,
  16. Color? appHandleBackgroundColor,
  17. Color? errorColor,
  18. Color? firstPenColor,
  19. Color? secondPenColor,
  20. Color? thirdPenColor,
  21. Color? fourthPenColor,
  22. Size? windowSize,
  23. WiredashTextTheme? textTheme,
})

Implementation

factory WiredashThemeData({
  Brightness brightness = Brightness.light,
  DeviceClass deviceClass = DeviceClass.handsetLarge400,
  Color? primaryColor,
  Color? secondaryColor,
  Color? textOnPrimary,
  Color? textOnSecondary,
  Color? primaryBackgroundColor,
  Color? secondaryBackgroundColor,
  Color? primaryTextOnBackgroundColor,
  Color? secondaryTextOnBackgroundColor,
  Color? primaryContainerColor,
  Color? textOnPrimaryContainerColor,
  Color? secondaryContainerColor,
  Color? textOnSecondaryContainerColor,
  Color? appBackgroundColor,
  Color? appHandleBackgroundColor,
  Color? errorColor,
  Color? firstPenColor,
  Color? secondPenColor,
  Color? thirdPenColor,
  Color? fourthPenColor,
  Size? windowSize,
  WiredashTextTheme? textTheme,
}) {
  return WiredashThemeData._(
    primaryColor: primaryColor ?? const Color(0xff1A56DB),
    secondaryColor: secondaryColor,
    textOnPrimary: textOnPrimary,
    textOnSecondary: textOnSecondary,
    brightness: brightness,
    deviceClass: deviceClass,
    windowSize: windowSize ?? Size.zero,
    primaryBackgroundColor: primaryBackgroundColor,
    secondaryBackgroundColor: secondaryBackgroundColor,
    primaryTextOnBackgroundColor: primaryTextOnBackgroundColor,
    secondaryTextOnBackgroundColor: secondaryTextOnBackgroundColor,
    primaryContainerColor: primaryContainerColor,
    textOnPrimaryContainerColor: textOnPrimaryContainerColor,
    secondaryContainerColor: secondaryContainerColor,
    textOnSecondaryContainerColor: textOnSecondaryContainerColor,
    appBackgroundColor: appBackgroundColor,
    appHandleBackgroundColor: appHandleBackgroundColor,
    errorColor: errorColor,
    firstPenColor: firstPenColor,
    secondPenColor: secondPenColor,
    thirdPenColor: thirdPenColor,
    fourthPenColor: fourthPenColor,
    textTheme: textTheme,
  );
}