import 'package:flutter/material.dart';
class test extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Card(
shape: //??? how to know what value to give?
);
}
}
I'm new to the Flutter development environment. I started learning Material UI components and came to know about properties, and that each property can be assigned to certain values. How do I know what values to give for a certain property?
In the above code Material component, Card has a property called 'shape. How can I know the possible values for this property?
If you see the source code of the
class, you could find the 'type' of that property but most of the time they areabstract classso you wouldn't know what concrete type or 'implementation' to use. In my experience, the best way is to refer to the API documentation and check the examples.