reIcon method

Widget reIcon({
  1. Color? color,
  2. double? size,
})

Implementation

Widget reIcon({Color? color, double? size}) {
  final self = this;
  if (self is Icon) {
    return Icon(
      self.icon,
      color: color ?? self.color,
      size: size ?? self.size,
    );
  } else {
    return self;
  }
}