fetchProducts method

  1. @override
Future<Map<String, dynamic>> fetchProducts({
  1. String? userId,
})
override

Implementation

@override
Future<Map<String, dynamic>> fetchProducts({String? userId}) async {
  final result = await methodChannel.invokeMethod<Map>('fetchProducts', {
    'userId': userId,
  });
  return Map<String, dynamic>.from(result!);
}