GIcon constructor

GIcon(
  1. IconData data, [
  2. Color color = kColorWhite,
  3. double size = 24.0
])

Creates a new instance of GIcon with the specified IconData, color, and size.

Implementation

GIcon(
  widgets.IconData data, [
  ui.Color color = kColorWhite,
  double size = 24.0,
]) {
  _data = data;
  _color = color;
  this.size = size;
  _updateStyle();
}