getCartItemCount method Null safety

dynamic getCartItemCount()

This method is called when we have to get the cart lenght

Implementation

getCartItemCount() {
  return _cartItemList.length;
}