currentPrice abstract method

Future<Result<Price, String>> currentPrice({
  1. String from,
  2. String to,
})

retrieve current ratio of to currency to from currency. example: priceService(from:'BTC', to:'USD') -> 55234.654

Implementation

Future<Result<Price, String>> currentPrice({String from, String to});