Skip to content

Instantly share code, notes, and snippets.

@alejandro-rios
Created September 3, 2018 02:07
Show Gist options
  • Save alejandro-rios/124ef1c94600451fdd03a75df41d0116 to your computer and use it in GitHub Desktop.
Save alejandro-rios/124ef1c94600451fdd03a75df41d0116 to your computer and use it in GitHub Desktop.
package com.f22labs.darthensondemo;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import dart.BindExtra;
import dart.DartModel;
// Model used to pass the values to DetailsActivity
@DartModel // This annotation is necesary for all the navigation models
public class DetailsActivityNavigationModel {
public @BindExtra // Replaces @InjectExtra annotation
boolean isSuccess = false;
public @BindExtra
Parcelable user;
public @Nullable // @Nullable works in the same way as before
@BindExtra
String extraText;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment