Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Renamed onLatestImageAvailableHandler definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Nov 9, 2020
1 parent 4d78819 commit d98a51e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ abstract class CameraPlatform extends PlatformInterface {
/// have significant frame rate drops for [CameraPreview] on lower end
/// devices.
// TODO(bmparr): Add settings for resolution and fps.
Future<void> startImageStream(onLatestImageAvailable onAvailable) {
Future<void> startImageStream(ImageAvailableHandler onAvailable) {
throw UnimplementedError('startImageStream() is not implemented.');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import 'types.dart';
///
/// This is used by [CameraPlatform.startImageStream].
// ignore: inference_failure_on_function_return_type
typedef onLatestImageAvailable = Function(CameraImage image);
typedef ImageAvailableHandler = Function(CameraImage image);

0 comments on commit d98a51e

Please sign in to comment.