fix an analysis warning and some additional nits

Fixed an analysis warning in files_controller.dart related to Resource / Container.

@albualexandru