Ad

The Argument Type 'Widget Function(BuildContext, Object?)' Can't Be Assigned To The Parameter Type 'Widget Function(BuildContext, Dynamic, VxStatus?)'

- 1 answer

   VxBuilder(
  
     builder: (context, _) {
              return '\$${_cart.totalPrice}'
                  .text
                  .xl4
                  .color(Theme.of(context).accentColor)
                  .make();
            },
            mutations: {RemoveMutation},
          ),

code is here

VxBuilder is having some issues when I upgrade it to 2.5.0

Ad

Answer

From DocumentationVxBuilder requires builder as

Function(BuildContext context, T store, VxStatus? status)

Therefore you need to pass three parameters in builder constructor.

Ad
source: stackoverflow.com
Ad