|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
class Bridge {
|
|
|
|
|
|
|
|
static const MethodChannel _channel1 = const MethodChannel('bridge');
|
|
|
|
|
|
|
|
static Future<String> getStartIntent() async {
|
|
|
|
return await _channel1.invokeMethod('action');
|
|
|
|
}
|
|
|
|
|
|
|
|
static Future<String> toAppStore() async {
|
|
|
|
return await _channel1.invokeMethod('toAppStore');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|