MaterialIconTooltipComponent constructor
MaterialIconTooltipComponent(
- AcxDarkTheme darkTheme,
- HtmlElement element,
- @Attribute('icon') String? icon,
- @Attribute('type') String? type,
- @Attribute('size') String? size,
Implementation
MaterialIconTooltipComponent(
AcxDarkTheme darkTheme,
this.element,
@Attribute('icon') String? icon,
@Attribute('type') String? type,
@Attribute('size') String? size)
: icon = icon ?? '${type ?? "help"}_outline',
iconSize = size ?? 'medium' {
assert(type == 'help' || type == 'info' || type == 'error' || type == null);
assert(iconSize == 'x-small' ||
iconSize == 'small' ||
iconSize == 'medium' ||
iconSize == 'large' ||
iconSize == 'x-large' ||
iconSize == '');
darkTheme.themeElement(element);
}