MaterialIconTooltipComponent constructor

MaterialIconTooltipComponent(
  1. AcxDarkTheme darkTheme,
  2. HtmlElement element,
  3. @Attribute('icon') String? icon,
  4. @Attribute('type') String? type,
  5. @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);
}