platform/packages/client/lib/flutter.dart

20 lines
583 B
Dart
Raw Normal View History

2017-06-30 22:57:01 +00:00
/// Flutter-compatible client library for the Angel framework.
library angel_client.flutter;
import 'dart:async';
import 'package:http/http.dart' as http;
import 'base_angel_client.dart';
export 'angel_client.dart';
/// Queries an Angel server via REST.
class Rest extends BaseAngelClient {
2021-04-10 13:22:20 +00:00
Rest(String basePath) : super(http.Client() as http.BaseClient, basePath);
2017-06-30 22:57:01 +00:00
@override
2019-01-06 02:08:31 +00:00
Stream<String> authenticateViaPopup(String url,
{String eventName = 'token'}) {
2021-04-10 13:22:20 +00:00
throw UnimplementedError(
2019-01-06 02:08:31 +00:00
'Opening popup windows is not supported in the `flutter` client.');
2017-06-30 22:57:01 +00:00
}
}