createNeed method Null safety

Future<Need?> createNeed(
  1. LocalizedType<NeedType> needType,
  2. Instant startDate,
  3. Instant endDate
)

Creates a new need to a given needType. Returns the Need that was sent on success, null on error. Note that the returned Need has the NeedInvitation of all the participants.

Implementation

Future<Need?> createNeed(final LocalizedType<NeedType> needType,
    final Instant startDate, final Instant endDate) async {
  // ##TODO(sh1l0n): Fill query
  return null;
}