BuildContext.fromMap constructor

BuildContext.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory BuildContext.fromMap(Map<String, dynamic> map) {
  return BuildContext(
    Uri.parse(map['rootLibraryFileUri']),
    Uri.parse(map['buildDirectoryUri']),
    Uri.parse(map['executableUri']),
    map['source'],
    environment: map['environment'],
    forTests: map['forTests'] ?? false,
  );
}