How to use VideoPath in custom code?

Future<VideoPath> videoPathToString(
  BuildContext context,
  VideoPath? videoPath,
) async {
  // convert VideoPath to string
  if (videoPath == null) {
    return "";
  }
  VideoPath videoString = videoPath.toString();
  return videoString;
}

How do I use VideoPath in custom code so this works?

1