build method
Implementation
Future<BuildResult> build(
String platform, {
String? target,
required Map<String, dynamic> arguments,
Map<String, String>? environment,
}) {
final builder = _builders.firstWhere((e) => e.match(platform, target));
if (!builder.isSupportedOnCurrentPlatform) {
throw UnsupportedError(
'${builder.runtimeType} is not supported on the current platform',
);
}
return builder.build(
arguments: arguments,
environment: environment,
);
}