4
4
5
5
import 'dart:async' ;
6
6
7
+ import 'package:camera_platform_interface/src/method_channel/method_channel_camera.dart' ;
7
8
import 'package:file_selector_platform_interface/file_selector_platform_interface.dart' ;
8
9
import 'package:flutter/widgets.dart' ;
9
10
import 'package:plugin_platform_interface/plugin_platform_interface.dart' ;
10
- import 'package:camera_platform_interface/src/method_channel/method_channel_camera.dart' ;
11
11
12
12
import '../../camera_platform_interface.dart' ;
13
13
@@ -68,8 +68,9 @@ abstract class CameraPlatform extends PlatformInterface {
68
68
}
69
69
70
70
/// Captures an image and returns the file where it was saved.
71
- /// If no [file] parameter is provided, the file returned will be in a temporary location.
72
- Future <XFile > takePicture (int cameraId, { XFile file }) {
71
+ /// If no [file] parameter is provided, the file returned will be in a
72
+ /// temporary location.
73
+ Future <XFile > takePicture (int cameraId, {XFile file}) {
73
74
throw UnimplementedError ('takePicture() is not implemented.' );
74
75
}
75
76
@@ -78,14 +79,16 @@ abstract class CameraPlatform extends PlatformInterface {
78
79
throw UnimplementedError ('prepareForVideoRecording() is not implemented.' );
79
80
}
80
81
81
- /// Starts a video recording
82
+ /// Starts a video recording.
82
83
///
83
- /// If no [file] parameter is provided, the recording will be saved to a new file in a temporary location.
84
+ /// If no [file] parameter is provided, the recording will be saved to a new
85
+ /// file in a temporary location.
84
86
///
85
87
/// The file is written on the flight as the video is being recorded.
86
- /// If a file already exists at the path for the provided file instance, an error will be thrown.
88
+ /// If a file already exists at the path for the provided file instance,
89
+ /// an error will be thrown.
87
90
/// The file can be read as soon as [stopVideoRecording] returns it.
88
- Future <XFile > startVideoRecording (int cameraId, { XFile file }) {
91
+ Future <XFile > startVideoRecording (int cameraId, {XFile file}) {
89
92
throw UnimplementedError ('startVideoRecording() is not implemented.' );
90
93
}
91
94
0 commit comments