generate method

  1. @override
dynamic generate(
  1. dynamic theme
)
override

Implementation

@override
generate(dynamic theme) {
  if (theme == null) {
    if (style != null) {
      return IconThemeData(
        color: style!.background,
        opacity: style!.opacity,
        size: style!.size,
      );
    } else {
      return null;
    }
  } else {
    if (style != null) {
      return (theme as IconThemeData).copyWith(
        color: style!.background ?? theme.color,
        opacity: style!.opacity ?? theme.opacity,
        size: style!.size ?? theme.size,
      );
    } else {
      return theme as IconThemeData;
    }
  }
}