VideoPath not being recognized

// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom action code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!

Future<VideoPath?> convertToVideoPath(
  BuildContext context,
  String? videoFilePath,
) async {
  // recieves String of video path and returns it as VideoPath object
  VideoPath videoPath = VideoPath(videoFilePath);
  return videoPath;
}
1