@@ -369,8 +369,7 @@ class FFmpegKitConfig {
369369 /// execution results for MediaInformation sessions.
370370 static void enableMediaInformationSessionCompleteCallback ([
371371 MediaInformationSessionCompleteCallback ?
372- mediaInformationSessionCompleteCallback =
373- null ,
372+ mediaInformationSessionCompleteCallback = null ,
374373 ]) {
375374 FFmpegKitFactory .setGlobalMediaInformationSessionCompleteCallback (
376375 mediaInformationSessionCompleteCallback,
@@ -379,8 +378,8 @@ class FFmpegKitConfig {
379378
380379 /// Returns the global MediaInformationSessionCompleteCallback set.
381380 static MediaInformationSessionCompleteCallback ?
382- getMediaInformationSessionCompleteCallback () =>
383- FFmpegKitFactory .getGlobalMediaInformationSessionCompleteCallback ();
381+ getMediaInformationSessionCompleteCallback () =>
382+ FFmpegKitFactory .getGlobalMediaInformationSessionCompleteCallback ();
384383
385384 /// Returns the current log level.
386385 static int getLogLevel () => _activeLogLevel;
@@ -488,8 +487,8 @@ class FFmpegKitConfig {
488487 try {
489488 await init ();
490489 return _platform.ffmpegKitConfigGetLastSession ().then (
491- FFmpegKitFactory .mapToNullableSession,
492- );
490+ FFmpegKitFactory .mapToNullableSession,
491+ );
493492 } on PlatformException catch (e, stack) {
494493 print ("Plugin getLastSession error: ${e .message }" );
495494 return Future .error ("getLastSession failed." , stack);
@@ -501,8 +500,8 @@ class FFmpegKitConfig {
501500 try {
502501 await init ();
503502 return _platform.ffmpegKitConfigGetLastCompletedSession ().then (
504- FFmpegKitFactory .mapToNullableSession,
505- );
503+ FFmpegKitFactory .mapToNullableSession,
504+ );
506505 } on PlatformException catch (e, stack) {
507506 print ("Plugin getLastCompletedSession error: ${e .message }" );
508507 return Future .error ("getLastCompletedSession failed." , stack);
@@ -594,7 +593,7 @@ class FFmpegKitConfig {
594593
595594 /// Returns all MediaInformation sessions in the session history.
596595 static Future <List <MediaInformationSession >>
597- getMediaInformationSessions () async {
596+ getMediaInformationSessions () async {
598597 try {
599598 await FFmpegKitConfig .init ();
600599 return _platform.ffprobeKitListMediaInformationSessions ().then ((
@@ -628,18 +627,18 @@ class FFmpegKitConfig {
628627 return _platform
629628 .ffmpegKitConfigGetSessionsByState (sessionState.index)
630629 .then ((sessions) {
631- if (sessions == null ) {
632- return List .empty ();
633- } else {
634- return sessions
635- .map (
636- (dynamic sessionObject) => FFmpegKitFactory .mapToSession (
637- sessionObject as Map <dynamic , dynamic >,
638- ),
639- )
640- .toList ();
641- }
642- });
630+ if (sessions == null ) {
631+ return List .empty ();
632+ } else {
633+ return sessions
634+ .map (
635+ (dynamic sessionObject) => FFmpegKitFactory .mapToSession (
636+ sessionObject as Map <dynamic , dynamic >,
637+ ),
638+ )
639+ .toList ();
640+ }
641+ });
643642 } on PlatformException catch (e, stack) {
644643 print ("Plugin getSessionsByState error: ${e .message }" );
645644 return Future .error ("getSessionsByState failed." , stack);
0 commit comments