else if in children widget flutter code example
Example: if then else inside child in flutter
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)
Container(
color: Colors.white,
child: ('condition')
? Widget1(...)
: Widget2(...)
)