In Flutter, is there any advantage/disadvantage to returning 'Widget' rather than the exact type from a method inside a stateless/stateful widget?
Example
Container buildContainer() {
return Container(
child: Text('Something...'),
);
}
Widget buildContainer2() {
return Container(
child: Text('Something...'),
);
}