 {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() =&gt; new _MyHomePageState();
}

class _MyHomePageState extends State&lt;MyHomePage&gt; {

  List&lt;Widget&gt; products = [];

  Future getProducts() async {

    /// Initialize the API
    WooCommerceAPI wc_api = new WooCommerceAPI(
        "https://www.yourwebsite.com",
        "ck_your_consumer_key",
        "cs_your_consumer_secret"
    );
    
    /// Get data using the endpoi