IconInfo constructor

IconInfo({
  1. required int size,
  2. required String url,
})

Implementation

IconInfo({
  /// A number representing the width and height of the icon. Likely values
  /// include (but are not limited to) 128, 48, 24, and 16.
  required int size,

  /// The URL for this icon image. To display a grayscale version of the icon
  /// (to indicate that an extension is disabled, for example), append
  /// `?grayscale=true` to the URL.
  required String url,
}) : _wrapped = $js.IconInfo(
        size: size,
        url: url,
      );