nearby_connections/lib/nearby_connections.dart
2019-05-10 18:24:38 +05:30

18 lines
433 B
Dart

import 'dart:async';
import 'package:flutter/services.dart';
class Nearby {
//for maintaining only 1 instance of this class
static final Nearby _instance = Nearby._();
static Nearby get instance => _instance;
Nearby._();
static const MethodChannel _channel =
const MethodChannel('nearby_connections');
Future<bool> checkPermissions() async => await _channel.invokeMethod(
'checkPermissions',
);
}