BuildContext.fromMap constructor

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

Implementation

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