getChannelFetchTime method

Future<int> getChannelFetchTime(
  1. String channel
)

get a channel fetch time

Implementation

Future<int> getChannelFetchTime(String channel) async {
  final results = await _database.query(
    tableChannelFetches,
    columns: [columnFetchTime],
    where: '$columnChannel = ?',
    whereArgs: [channel],
  );
  return results.isNotEmpty ? results.first[columnFetchTime] as int : 0;
}