runFile method

  1. @override
Future<String> runFile(
  1. String path
)
override

Implementation

@override
Future<String> runFile(String path) async {
  final result = await methodChannel.invokeMethod<String>('runFile', {
    'path': path,
  });
  if (result == null) {
    throw PlatformException(
      code: 'ruby_runtime_null_result',
      message: 'Native runtime returned null for runFile().',
    );
  }
  return result;
}