getOrder method
Get order by ID.
Retrieves detailed information about a specific order.
orderId
the unique identifier of the order
Returns a map containing the order details, or null
if not found.
Implementation
@override
Future<Map<String, dynamic>?> getOrder(String orderId) async {
try {
final result = await methodChannel.invokeMethod<Map<String, dynamic>>(
'getOrder',
{'orderId': orderId},
);
return result;
} catch (e) {
_error = e.toString();
return null;
}
}