isYesterday static method

bool isYesterday(
  1. int current
)

Returns true if is yesterday, otherwise false

Implementation

static bool isYesterday(int current) =>
    current.millisecondsToDateTime.isYesterday;