How to omit second condition in conditional statement?
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
message != null
? Padding(
padding: const EdgeInsets.all(24.0),
child: Text(message),
)
: null, // how to omit second condition?
],
);
Wheh the second condition is null I get
════════ Exception caught by widgets library ════════ The following assertion was thrown building ExportData(dirty, state: _ExportDataState#e723d): Column's children must not contain any null values, but a null value was found at index 4