Interface Key.CallSite

All Known Implementing Classes:
Key.Bi, Key.EqualityValue, Key.Global, Key.IdentityValue, Key.IntValue, Key.Local
Enclosing class:
Key
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Key.CallSite
Together with the parent's key, identifies a widget by the getState call-site in the tree.

To create a call-site key, use the syntax () -> {} as the argument. You may store this in a variable or a field, but you must not use it at more than one getState call-site.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    __()
     
    default void
    hash(Hasher hasher)
     
  • Method Details

    • hash

      default void hash(Hasher hasher)
    • __

      void __()