You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/compass_app/app/testing/utils/result.dart

10 lines
248 B

import 'package:compass_app/utils/result.dart';
extension ResultCast<T> on Result<T> {
/// Convenience method to cast to Ok
Ok<T> get asOk => this as Ok<T>;
/// Convenience method to cast to Error
Error get asError => this as Error<T>;
}