how to use if condtion inside the child: DropDownField on flutter code example
Example: conditionalstatement in widget flutter
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)