DevToolsIcon constructor

DevToolsIcon({
  1. Key? key,
  2. IconData? icon,
  3. String? iconAsset,
  4. Color? color,
  5. double? size,
})

Implementation

DevToolsIcon({super.key, this.icon, this.iconAsset, this.color, double? size})
    : assert(
        (icon == null) != (iconAsset == null),
        'Exactly one of icon and iconAsset must be specified.',
      ),
      size = size ?? defaultIconSize;