FlutterUploader constructor

FlutterUploader()

Default constructor which returns the same object on future calls (singleton).

Implementation

factory FlutterUploader() {
  return _instance ??= FlutterUploader.private(
    const MethodChannel('flutter_uploader'),
    const EventChannel('flutter_uploader/events/progress'),
    const EventChannel('flutter_uploader/events/result'),
  );
}