uptime_x 0.0.7 uptime_x: ^0.0.7 copied to clipboard
A new flutter plugin project.
import 'dart:async';
import 'package:flutter/services.dart';
class Uptime {
static const MethodChannel _channel = const MethodChannel('uptime_x');
static Future<int> get uptime async {
final int uptime = await _channel.invokeMethod('getUptime');
return uptime;
}
}