The argument type 'String?' can't be assigned to the parameter type 'String
code is here.kindly please solve my problem sir
class IconContent extends StatelessWidget {
IconContent({this.icon,this.label});
final IconData? icon;
final String? label;
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
icon,
size: 80.0,
),
SizedBox(
height: 15.0,
),
Text(
label,
style: TextStyle(
fontSize: 18.0,
color: Color(0xFFB2B58E),
),
)
],
);
}
}