getTipForContext method

String? getTipForContext(
  1. UserAction context
)

Return a tip string for the given context, or null.

Implementation

String? getTipForContext(UserAction context) {
  final pool = _tipsForContext(context);
  if (pool.isEmpty) return null;
  return pool[_rng.nextInt(pool.length)];
}