getWishlist method
Get customer wishlist.
Retrieves the wishlist items for the currently authenticated customer. Requires customer authentication.
Returns a map containing the wishlist data, or null
if not authenticated or failed.
Implementation
@override
Future<Map<String, dynamic>?> getWishlist() async {
try {
final result = await methodChannel.invokeMethod<Map<String, dynamic>>(
'getWishlist',
);
return result;
} catch (e) {
_error = e.toString();
return null;
}
}