refactor context to be implicit-downcast safe (#31622)

This commit is contained in:
Jonah Williams
2019-04-25 15:51:08 -07:00
committed by GitHub
parent 0e5d771a2a
commit 0acd3e6b04
56 changed files with 144 additions and 127 deletions

View File

@@ -8,7 +8,7 @@ import '../desktop.dart';
import '../doctor.dart';
/// The [WindowsWorkflow] instance.
LinuxWorkflow get linuxWorkflow => context[LinuxWorkflow];
LinuxWorkflow get linuxWorkflow => context.get<LinuxWorkflow>();
/// The windows-specific implementation of a [Workflow].
///