mirrored_repositories/Flutter-Clean-Architecture-MVVM/lib
import 'package:flutter_cleanarchitecture_mvvm/data/model/Pokemon.dart';
import 'package:flutter_cleanarchitecture_mvvm/domain/BaseUseCase.dart';
import 'package:flutter_cleanarchitecture_mvvm/data/repository/PokemonRepository.dart';

class GetPokemonListUseCase extends BaseUseCase<List<Pokemon>> {
  PokemonRepository pokemonRepository;

  GetPokemonListUseCase(PokemonRepository pokemonRepository) {
    this.pokemonRepository = pokemonRepository;
  }

  @override
  Future<List<Pokemon>> perform() {
    return pokemonRepository.getPokemonList();
  }
}
