EditFlashcardBody constructor

EditFlashcardBody(
  1. Deck deck,
  2. Flashcard flashcardReceived
)

Implementation

EditFlashcardBody(Deck deck, Flashcard flashcardReceived) {
  this.flashcardReceived = flashcardReceived;
  this.deck = deck;

  if (flashcardReceived != null) {
    myControllerFrente.text = this.flashcardReceived.getFace();
    oldNameFrente = this.flashcardReceived.getFace();

    myControllerVerso.text = this.flashcardReceived.getBack();
    oldNameVerso = this.flashcardReceived.getBack();
  }
}