findCustomBootstrapTemplate method

Future<File?> findCustomBootstrapTemplate(
  1. Directory projectDir
)

Inspects the project for an existing custom web/flutter_bootstrap.js template.

Implementation

Future<File?> findCustomBootstrapTemplate(Directory projectDir) async {
  final file = File(
    '${projectDir.path}${Platform.pathSeparator}web${Platform.pathSeparator}flutter_bootstrap.js',
  );
  if (await file.exists()) {
    return file;
  }
  return null;
}