Skip to content

Add extension on BuildContext #608

@timrijckaert

Description

@timrijckaert

Similar to the proposal on the Provider package.
Are we down for some extension functions to easily get a Bloc and a Repository?

var fooBloc = context.bloc<FooBloc>();
var barRepo = context.repo<BarRepo>();

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpkg:flutter_blocThis issue is related to the flutter_bloc packagerelease candidateCandidate for release pending successful build

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions