gradient property Null safety

LinearGradient? gradient
final

Sets linearGradient to the box

Box(
 gradient:LinearGradient(colors:[Colors.red,Colors.blue],
  )
)

Implementation

final LinearGradient? gradient;